#include <stdint.h>
// seem no dependency on target_config.h
//#include "target_config.h"
#include "bt_patch_table.h"
#include "compiler.h"
#include "system.h"

#define MINISYS_UART_ENABLE    0
#define MINISYS_UART_GPIO3     0
#define FIX_BOND_ERROR         0

#define FW_PATCH_EXTRA_ADDR_U02         0x16F680
#define MINISYS_PATCH_EXTRA_ADDR_U02    0x1E7FF0
#define FW_PATCH_EXTRA_ADDR_U03         0x16F680
#define MINISYS_PATCH_EXTRA_ADDR_U03    0x1E7FF0

#define FW_PATCH_EXTRA_ADDRx(v)         MCAT(FW_PATCH_EXTRA_ADDR_U0, v)
#define FW_PATCH_EXTRA_ADDR             FW_PATCH_EXTRA_ADDRx(CFG_ROM_VER)
#define MINISYS_PATCH_EXTRA_ADDRx(v)    MCAT(MINISYS_PATCH_EXTRA_ADDR_U0, v)
#define MINISYS_PATCH_EXTRA_ADDR        MINISYS_PATCH_EXTRA_ADDRx(CFG_ROM_VER)

const uint32_t VAR_WITH_VERx(fw_patch_data_table, 2)[] =
{
    /*0x0016ad64,*/0x0016ad64,
    /*0x00000b60,*/0x00000b60,
    /*0x0016ad64,*/0x2262b510,
    /*0x0016ad68,*/0x4b0f4342,
    /*0x0016ad6c,*/0x4462469c,
    /*0x0016ad70,*/0xb2db8813,
    /*0x0016ad74,*/0xd0132b1e,
    /*0x0016ad78,*/0x480d490c,
    /*0x0016ad7c,*/0x480d5c0c,
    /*0x0016ad80,*/0x19095c09,
    /*0x0016ad84,*/0x428b2001,
    /*0x0016ad88,*/0x1b1bdb09,
    /*0x0016ad8c,*/0x2b10b2db,
    /*0x0016ad90,*/0x8811d008,
    /*0x0016ad94,*/0x438120ff,
    /*0x0016ad98,*/0x8013430b,
    /*0x0016ad9c,*/0xbd102000,
    /*0x0016ada0,*/0xe7e93b0e,
    /*0x0016ada4,*/0xe7f4330e,
    /*0x0016ada8,*/0x4061650c,
    /*0x0016adac,*/0x00161e74,
    /*0x0016adb0,*/0x00000257,
    /*0x0016adb4,*/0x00000255,
    /*0x0016adb8,*/0x2262b530,
    /*0x0016adbc,*/0x4b0f4342,
    /*0x0016adc0,*/0x4462469c,
    /*0x0016adc4,*/0xb2db8813,
    /*0x0016adc8,*/0xd0122b1e,
    /*0x0016adcc,*/0x480d490c,
    /*0x0016add0,*/0x191d5c0c,
    /*0x0016add4,*/0x5c093803,
    /*0x0016add8,*/0x428d2001,
    /*0x0016addc,*/0xb2ebdc08,
    /*0x0016ade0,*/0xd0082b10,
    /*0x0016ade4,*/0x20ff8811,
    /*0x0016ade8,*/0x430b4381,
    /*0x0016adec,*/0x20008013,
    /*0x0016adf0,*/0x3b0ebd30,
    /*0x0016adf4,*/0x330ee7ea,
    /*0x0016adf8,*/0x46c0e7f4,
    /*0x0016adfc,*/0x4061650c,
    /*0x0016ae00,*/0x00161e74,
    /*0x0016ae04,*/0x00000257,
    /*0x0016ae08,*/0x4d07b570,
    /*0x0016ae0c,*/0x006424f8,
    /*0x0016ae10,*/0x512b2300,
    /*0x0016ae14,*/0xfb6af71d,
    /*0x0016ae18,*/0x512b4b04,
    /*0x0016ae1c,*/0x22804b04,
    /*0x0016ae20,*/0x601a0292,
    /*0x0016ae24,*/0x46c0bd70,
    /*0x0016ae28,*/0x00161928,
    /*0x0016ae2c,*/0x0016ae09,
    /*0x0016ae30,*/0xe000e100,
    /*0x0016ae34,*/0x4c06b510,
    /*0x0016ae38,*/0x67232300,
    /*0x0016ae3c,*/0xf8eef71d,
    /*0x0016ae40,*/0x23954a04,
    /*0x0016ae44,*/0x2140009b,
    /*0x0016ae48,*/0x4b0354d1,
    /*0x0016ae4c,*/0xbd106723,
    /*0x0016ae50,*/0x00161928,
    /*0x0016ae54,*/0x00161e74,
    /*0x0016ae58,*/0x0016ae35,
    /*0x0016ae5c,*/0x46deb5f8,
    /*0x0016ae60,*/0x464e4657,
    /*0x0016ae64,*/0xb5e04645,
    /*0x0016ae68,*/0x46894682,
    /*0x0016ae6c,*/0x48230014,
    /*0x0016ae70,*/0xf99ef719,
    /*0x0016ae74,*/0x48224651,
    /*0x0016ae78,*/0xf99af719,
    /*0x0016ae7c,*/0x0a1b464b,
    /*0x0016ae80,*/0x23de469b,
    /*0x0016ae84,*/0x58e3009b,
    /*0x0016ae88,*/0x70984658,
    /*0x0016ae8c,*/0x21012201,
    /*0x0016ae90,*/0xfb9cf74c,
    /*0x0016ae94,*/0x895e4b1b,
    /*0x0016ae98,*/0xdd252e00,
    /*0x0016ae9c,*/0x23002400,
    /*0x0016aea0,*/0x4b184698,
    /*0x0016aea4,*/0x4f18681d,
    /*0x0016aea8,*/0x6853e009,
    /*0x0016aeac,*/0x001a4698,
    /*0x0016aeb0,*/0x48160021,
    /*0x0016aeb4,*/0xf97cf719,
    /*0x0016aeb8,*/0x42b43401,
    /*0x0016aebc,*/0x00e3da05,
    /*0x0016aec0,*/0x5aeb18ea,
    /*0x0016aec4,*/0xd1f742bb,
    /*0x0016aec8,*/0x4643e7ef,
    /*0x0016aecc,*/0xd00d2b00,
    /*0x0016aed0,*/0x021a465b,
    /*0x0016aed4,*/0x4651464b,
    /*0x0016aed8,*/0x47c0480b,
    /*0x0016aedc,*/0x4690bc3c,
    /*0x0016aee0,*/0x46a24699,
    /*0x0016aee4,*/0xbdf846ab,
    /*0x0016aee8,*/0x46982300,
    /*0x0016aeec,*/0x6e9b4b08,
    /*0x0016aef0,*/0x21002200,
    /*0x0016aef4,*/0x47982000,
    /*0x0016aef8,*/0x46c0e7ea,
    /*0x0016aefc,*/0x0016b880,
    /*0x0016af00,*/0x0016b88c,
    /*0x0016af04,*/0x000db2a8,
    /*0x0016af08,*/0x0000050c,
    /*0x0016af0c,*/0x0016b898,
    /*0x0016af10,*/0x00161928,
    /*0x0016af14,*/0xb082b570,
    /*0x0016af18,*/0xa8014669,
    /*0x0016af1c,*/0xfb30f740,
    /*0x0016af20,*/0x9b009c01,
    /*0x0016af24,*/0x367a001e,
    /*0x0016af28,*/0x0092229c,
    /*0x0016af2c,*/0xd9194296,
    /*0x0016af30,*/0x3bff3bf8,
    /*0x0016af34,*/0x3401001e,
    /*0x0016af38,*/0x09240124,
    /*0x0016af3c,*/0x052d2580,
    /*0x0016af40,*/0xa8014669,
    /*0x0016af44,*/0xfb1cf740,
    /*0x0016af48,*/0x1aa39a01,
    /*0x0016af4c,*/0x091b011b,
    /*0x0016af50,*/0xd9f542ab,
    /*0x0016af54,*/0x01121b12,
    /*0x0016af58,*/0x9b00d0f2,
    /*0x0016af5c,*/0xd3ef42b3,
    /*0x0016af60,*/0xbd70b002,
    /*0x0016af64,*/0xd2e942b3,
    /*0x0016af68,*/0x052d2580,
    /*0x0016af6c,*/0x9b00e002,
    /*0x0016af70,*/0xd2f542b3,
    /*0x0016af74,*/0xa8014669,
    /*0x0016af78,*/0xfb02f740,
    /*0x0016af7c,*/0x1aa39a01,
    /*0x0016af80,*/0x091b011b,
    /*0x0016af84,*/0xd9f242ab,
    /*0x0016af88,*/0x01121b12,
    /*0x0016af8c,*/0xe7e7d0ef,
    /*0x0016af90,*/0xd00e2800,
    /*0x0016af94,*/0x23804a0a,
    /*0x0016af98,*/0x02892180,
    /*0x0016af9c,*/0xf3bf50d1,
    /*0x0016afa0,*/0xf3bf8f4f,
    /*0x0016afa4,*/0x4a078f6f,
    /*0x0016afa8,*/0x21086813,
    /*0x0016afac,*/0x6013430b,
    /*0x0016afb0,*/0x4a044770,
    /*0x0016afb4,*/0x21086813,
    /*0x0016afb8,*/0x6013438b,
    /*0x0016afbc,*/0x46c0e7f8,
    /*0x0016afc0,*/0xe000e100,
    /*0x0016afc4,*/0x40044084,
    /*0x0016afc8,*/0x0004b510,
    /*0x0016afcc,*/0xfac6f71a,
    /*0x0016afd0,*/0x60a34b02,
    /*0x0016afd4,*/0x60e34b02,
    /*0x0016afd8,*/0x46c0bd10,
    /*0x0016afdc,*/0x0016ad65,
    /*0x0016afe0,*/0x0016adb9,
    /*0x0016afe4,*/0x0004b510,
    /*0x0016afe8,*/0xf86cf71e,
    /*0x0016afec,*/0xd0002801,
    /*0x0016aff0,*/0x4a20bd10,
    /*0x0016aff4,*/0x009b2395,
    /*0x0016aff8,*/0x4b1f5cd2,
    /*0x0016affc,*/0x4b1f701a,
    /*0x0016b000,*/0x4b1f681a,
    /*0x0016b004,*/0x2c01601a,
    /*0x0016b008,*/0x2302d021,
    /*0x0016b00c,*/0x439a0022,
    /*0x0016b010,*/0x4b1cd005,
    /*0x0016b014,*/0x22006e9b,
    /*0x0016b018,*/0x20002100,
    /*0x0016b01c,*/0x4a154798,
    /*0x0016b020,*/0x009b2395,
    /*0x0016b024,*/0x54d12140,
    /*0x0016b028,*/0x4a174b14,
    /*0x0016b02c,*/0x2340601a,
    /*0x0016b030,*/0x222d4916,
    /*0x0016b034,*/0x2c01548b,
    /*0x0016b038,*/0x2c02d915,
    /*0x0016b03c,*/0x4a14d1d8,
    /*0x0016b040,*/0x21ff8813,
    /*0x0016b044,*/0x39bf438b,
    /*0x0016b048,*/0x8013430b,
    /*0x0016b04c,*/0x4a09e7d0,
    /*0x0016b050,*/0x009b2395,
    /*0x0016b054,*/0x54d12130,
    /*0x0016b058,*/0x4a0b4b08,
    /*0x0016b05c,*/0x2330601a,
    /*0x0016b060,*/0x222d490a,
    /*0x0016b064,*/0x490b548b,
    /*0x0016b068,*/0x20ff880a,
    /*0x0016b06c,*/0x43134382,
    /*0x0016b070,*/0xe7bd800b,
    /*0x0016b074,*/0x00161e74,
    /*0x0016b078,*/0x0016b8b4,
    /*0x0016b07c,*/0x40620754,
    /*0x0016b080,*/0x0016b8b0,
    /*0x0016b084,*/0x00161928,
    /*0x0016b088,*/0x212220fd,
    /*0x0016b08c,*/0x00169254,
    /*0x0016b090,*/0x4061018e,
    /*0x0016b094,*/0x4061650c,
    /*0x0016b098,*/0x0004b510,
    /*0x0016b09c,*/0xf812f71e,
    /*0x0016b0a0,*/0xd0002801,
    /*0x0016b0a4,*/0x4b0fbd10,
    /*0x0016b0a8,*/0x490f781b,
    /*0x0016b0ac,*/0x00922295,
    /*0x0016b0b0,*/0x4a0e548b,
    /*0x0016b0b4,*/0x4a0e6811,
    /*0x0016b0b8,*/0x490e6011,
    /*0x0016b0bc,*/0x548b222d,
    /*0x0016b0c0,*/0xd9082c01,
    /*0x0016b0c4,*/0xd1ed2c02,
    /*0x0016b0c8,*/0x880a490b,
    /*0x0016b0cc,*/0x438220ff,
    /*0x0016b0d0,*/0x800b4313,
    /*0x0016b0d4,*/0x4909e7e6,
    /*0x0016b0d8,*/0x20ff880a,
    /*0x0016b0dc,*/0x43134382,
    /*0x0016b0e0,*/0xe7df800b,
    /*0x0016b0e4,*/0x0016b8b4,
    /*0x0016b0e8,*/0x00161e74,
    /*0x0016b0ec,*/0x0016b8b0,
    /*0x0016b0f0,*/0x40620754,
    /*0x0016b0f4,*/0x00169254,
    /*0x0016b0f8,*/0x4061018e,
    /*0x0016b0fc,*/0x4061650c,
    /*0x0016b100,*/0x4b18b570,
    /*0x0016b104,*/0x0082681b,
    /*0x0016b108,*/0x23ec58d2,
    /*0x0016b10c,*/0x7a9d58d3,
    /*0x0016b110,*/0x2a011e6a,
    /*0x0016b114,*/0x4b14d905,
    /*0x0016b118,*/0x24004798,
    /*0x0016b11c,*/0xd0132d02,
    /*0x0016b120,*/0x79dcbd70,
    /*0x0016b124,*/0x4b100924,
    /*0x0016b128,*/0x2d014798,
    /*0x0016b12c,*/0x2c01d1f6,
    /*0x0016b130,*/0x3c02d906,
    /*0x0016b134,*/0xd8f32c01,
    /*0x0016b138,*/0xf7ff2001,
    /*0x0016b13c,*/0xe7efff53,
    /*0x0016b140,*/0xf7ff2000,
    /*0x0016b144,*/0xe7ebff4f,
    /*0x0016b148,*/0xd9062c01,
    /*0x0016b14c,*/0x2c013c02,
    /*0x0016b150,*/0x2001d8e6,
    /*0x0016b154,*/0xffa0f7ff,
    /*0x0016b158,*/0x2000e7e2,
    /*0x0016b15c,*/0xff9cf7ff,
    /*0x0016b160,*/0x46c0e7de,
    /*0x0016b164,*/0x0016b8ac,
    /*0x0016b168,*/0x000af9c5,
    /*0x0016b16c,*/0x46deb5f8,
    /*0x0016b170,*/0x464e4657,
    /*0x0016b174,*/0xb5e04645,
    /*0x0016b178,*/0x68234c6a,
    /*0x0016b17c,*/0x40334e6a,
    /*0x0016b180,*/0x4d6a6023,
    /*0x0016b184,*/0x4a6a682b,
    /*0x0016b188,*/0x602b4013,
    /*0x0016b18c,*/0xfd5cf71d,
    /*0x0016b190,*/0x4a686823,
    /*0x0016b194,*/0x60234013,
    /*0x0016b198,*/0x4a67682b,
    /*0x0016b19c,*/0x602b4013,
    /*0x0016b1a0,*/0x4a666823,
    /*0x0016b1a4,*/0x2380401a,
    /*0x0016b1a8,*/0x431300db,
    /*0x0016b1ac,*/0x68236023,
    /*0x0016b1b0,*/0x2380401e,
    /*0x0016b1b4,*/0x4333011b,
    /*0x0016b1b8,*/0x4b616023,
    /*0x0016b1bc,*/0x257f469a,
    /*0x0016b1c0,*/0x23ff0022,
    /*0x0016b1c4,*/0x4b5f4699,
    /*0x0016b1c8,*/0x4b594698,
    /*0x0016b1cc,*/0x2180469c,
    /*0x0016b1d0,*/0x002e0189,
    /*0x0016b1d4,*/0xb2ed3504,
    /*0x0016b1d8,*/0x00284654,
    /*0x0016b1dc,*/0x464f6813,
    /*0x0016b1e0,*/0x430343bb,
    /*0x0016b1e4,*/0x46436013,
    /*0x0016b1e8,*/0x601f6827,
    /*0x0016b1ec,*/0x46676813,
    /*0x0016b1f0,*/0x2780403b,
    /*0x0016b1f4,*/0x433b007f,
    /*0x0016b1f8,*/0x46c06013,
    /*0x0016b1fc,*/0x46c046c0,
    /*0x0016b200,*/0x681346c0,
    /*0x0016b204,*/0xd0fc420b,
    /*0x0016b208,*/0xb2c03801,
    /*0x0016b20c,*/0x42b03404,
    /*0x0016b210,*/0x2310d1e4,
    /*0x0016b214,*/0x44da469b,
    /*0x0016b218,*/0xd1da2d8f,
    /*0x0016b21c,*/0x68234c41,
    /*0x0016b220,*/0x40134a46,
    /*0x0016b224,*/0xf71d6023,
    /*0x0016b228,*/0x6823fd16,
    /*0x0016b22c,*/0x40134a3e,
    /*0x0016b230,*/0x4b3e6023,
    /*0x0016b234,*/0x2180681a,
    /*0x0016b238,*/0x601a430a,
    /*0x0016b23c,*/0x493c681a,
    /*0x0016b240,*/0x22804011,
    /*0x0016b244,*/0x430a0052,
    /*0x0016b248,*/0x2010601a,
    /*0x0016b24c,*/0x271f001a,
    /*0x0016b250,*/0x4d3e4e3d,
    /*0x0016b254,*/0x21802420,
    /*0x0016b258,*/0x681300c9,
    /*0x0016b25c,*/0x430343bb,
    /*0x0016b260,*/0x00836013,
    /*0x0016b264,*/0x602b58f3,
    /*0x0016b268,*/0x43a36813,
    /*0x0016b26c,*/0x60134323,
    /*0x0016b270,*/0x46c046c0,
    /*0x0016b274,*/0x46c046c0,
    /*0x0016b278,*/0x420b6813,
    /*0x0016b27c,*/0x3001d0fc,
    /*0x0016b280,*/0xd1ea2820,
    /*0x0016b284,*/0x68234c29,
    /*0x0016b288,*/0x43932280,
    /*0x0016b28c,*/0xf71d6023,
    /*0x0016b290,*/0x6823fce2,
    /*0x0016b294,*/0x402b4d26,
    /*0x0016b298,*/0x4a2d6023,
    /*0x0016b29c,*/0x21026813,
    /*0x0016b2a0,*/0x6013438b,
    /*0x0016b2a4,*/0x68134a2b,
    /*0x0016b2a8,*/0x400b492b,
    /*0x0016b2ac,*/0x4b2b6013,
    /*0x0016b2b0,*/0x601a2200,
    /*0x0016b2b4,*/0xfcc8f71d,
    /*0x0016b2b8,*/0x680b491a,
    /*0x0016b2bc,*/0x40134a1d,
    /*0x0016b2c0,*/0x01522280,
    /*0x0016b2c4,*/0x600b4313,
    /*0x0016b2c8,*/0x4817680b,
    /*0x0016b2cc,*/0x23804018,
    /*0x0016b2d0,*/0x4303011b,
    /*0x0016b2d4,*/0x6823600b,
    /*0x0016b2d8,*/0x40194917,
    /*0x0016b2dc,*/0x009b2380,
    /*0x0016b2e0,*/0x6023430b,
    /*0x0016b2e4,*/0x401d6823,
    /*0x0016b2e8,*/0x005b2380,
    /*0x0016b2ec,*/0x6023432b,
    /*0x0016b2f0,*/0x68194b1b,
    /*0x0016b2f4,*/0x601a430a,
    /*0x0016b2f8,*/0x68134a1a,
    /*0x0016b2fc,*/0x400b491a,
    /*0x0016b300,*/0x4b1a6013,
    /*0x0016b304,*/0x491a681a,
    /*0x0016b308,*/0x601a400a,
    /*0x0016b30c,*/0x22806819,
    /*0x0016b310,*/0x430a05d2,
    /*0x0016b314,*/0xbc3c601a,
    /*0x0016b318,*/0x46994690,
    /*0x0016b31c,*/0x46ab46a2,
    /*0x0016b320,*/0x46c0bdf8,
    /*0x0016b324,*/0x40344060,
    /*0x0016b328,*/0xfffff7ff,
    /*0x0016b32c,*/0x4034406c,
    /*0x0016b330,*/0xfffffeff,
    /*0x0016b334,*/0xffffefff,
    /*0x0016b338,*/0xfffffdff,
    /*0x0016b33c,*/0xfffffbff,
    /*0x0016b340,*/0x00169bcc,
    /*0x0016b344,*/0x40344064,
    /*0x0016b348,*/0x0016994c,
    /*0x0016b34c,*/0x40344070,
    /*0x0016b350,*/0x40580018,
    /*0x0016b354,*/0x40344058,
    /*0x0016b358,*/0xfbffffff,
    /*0x0016b35c,*/0x40344008,
    /*0x0016b360,*/0x40342014,
    /*0x0016b364,*/0x40342018,
    /*0x0016b368,*/0xfffbffff,
    /*0x0016b36c,*/0x4034201c,
    /*0x0016b370,*/0xdfffffff,
    /*0x0016b374,*/0x2801b510,
    /*0x0016b378,*/0x3802d003,
    /*0x0016b37c,*/0xd9052801,
    /*0x0016b380,*/0xf71dbd10,
    /*0x0016b384,*/0xf71ffc6f,
    /*0x0016b388,*/0xe7f9f96b,
    /*0x0016b38c,*/0xfd6cf71d,
    /*0x0016b390,*/0xf974f71f,
    /*0x0016b394,*/0x681b4b06,
    /*0x0016b398,*/0xd4f1029b,
    /*0x0016b39c,*/0x680b4904,
    /*0x0016b3a0,*/0x401a4a04,
    /*0x0016b3a4,*/0x041b2380,
    /*0x0016b3a8,*/0x600b4313,
    /*0x0016b3ac,*/0x46c0e7e8,
    /*0x0016b3b0,*/0x40344058,
    /*0x0016b3b4,*/0xff7fffff,
    /*0x0016b3b8,*/0x4b120412,
    /*0x0016b3bc,*/0x0449401a,
    /*0x0016b3c0,*/0x430a0c49,
    /*0x0016b3c4,*/0x601a4b10,
    /*0x0016b3c8,*/0x681a4b10,
    /*0x0016b3cc,*/0x21e00600,
    /*0x0016b3d0,*/0x400804c9,
    /*0x0016b3d4,*/0x400a490e,
    /*0x0016b3d8,*/0x60184310,
    /*0x0016b3dc,*/0x22806819,
    /*0x0016b3e0,*/0x430a0612,
    /*0x0016b3e4,*/0x6819601a,
    /*0x0016b3e8,*/0x05d22280,
    /*0x0016b3ec,*/0x601a430a,
    /*0x0016b3f0,*/0x4908681a,
    /*0x0016b3f4,*/0x601a400a,
    /*0x0016b3f8,*/0x0052681a,
    /*0x0016b3fc,*/0x601a0852,
    /*0x0016b400,*/0x46c04770,
    /*0x0016b404,*/0x7fff0000,
    /*0x0016b408,*/0x40620544,
    /*0x0016b40c,*/0x40620528,
    /*0x0016b410,*/0xf8ffffff,
    /*0x0016b414,*/0xbfffffff,
    /*0x0016b418,*/0x46d6b5f0,
    /*0x0016b41c,*/0x4646464f,
    /*0x0016b420,*/0xb082b5c0,
    /*0x0016b424,*/0x680b491c,
    /*0x0016b428,*/0x4a1c4699,
    /*0x0016b42c,*/0x4b1c401a,
    /*0x0016b430,*/0x600b4313,
    /*0x0016b434,*/0x681b4b1b,
    /*0x0016b438,*/0x4b1b4698,
    /*0x0016b43c,*/0x469a681b,
    /*0x0016b440,*/0x23f02400,
    /*0x0016b444,*/0x439f4647,
    /*0x0016b448,*/0xb2e54e16,
    /*0x0016b44c,*/0x21002200,
    /*0x0016b450,*/0xf7ff0028,
    /*0x0016b454,*/0x0123ffb1,
    /*0x0016b458,*/0x6033433b,
    /*0x0016b45c,*/0xfe8ff71d,
    /*0x0016b460,*/0xa8014669,
    /*0x0016b464,*/0xfe9cf71d,
    /*0x0016b468,*/0x99019a00,
    /*0x0016b46c,*/0xf7ff0028,
    /*0x0016b470,*/0x3401ffa3,
    /*0x0016b474,*/0xd1e82c04,
    /*0x0016b478,*/0x464a4b07,
    /*0x0016b47c,*/0x4b09601a,
    /*0x0016b480,*/0x601a4642,
    /*0x0016b484,*/0x46524b08,
    /*0x0016b488,*/0xb002601a,
    /*0x0016b48c,*/0x4690bc1c,
    /*0x0016b490,*/0x46a24699,
    /*0x0016b494,*/0x46c0bdf0,
    /*0x0016b498,*/0x4062051c,
    /*0x0016b49c,*/0x7f8fffff,
    /*0x0016b4a0,*/0x0020000a,
    /*0x0016b4a4,*/0x40620508,
    /*0x0016b4a8,*/0x40620004,
    /*0x0016b4ac,*/0x46c6b5f0,
    /*0x0016b4b0,*/0x4d11b500,
    /*0x0016b4b4,*/0x682a682c,
    /*0x0016b4b8,*/0x403a4f10,
    /*0x0016b4bc,*/0x005b2380,
    /*0x0016b4c0,*/0x602b4313,
    /*0x0016b4c4,*/0x68334e0e,
    /*0x0016b4c8,*/0x68334698,
    /*0x0016b4cc,*/0x43932202,
    /*0x0016b4d0,*/0x20266033,
    /*0x0016b4d4,*/0xfc88f71e,
    /*0x0016b4d8,*/0xff9ef7ff,
    /*0x0016b4dc,*/0xfccaf71e,
    /*0x0016b4e0,*/0x60334643,
    /*0x0016b4e4,*/0x05e4682b,
    /*0x0016b4e8,*/0x02240fe4,
    /*0x0016b4ec,*/0x431c403b,
    /*0x0016b4f0,*/0xbc04602c,
    /*0x0016b4f4,*/0xbdf04690,
    /*0x0016b4f8,*/0x40600400,
    /*0x0016b4fc,*/0xfffffeff,
    /*0x0016b500,*/0x40580018,
    /*0x0016b504,*/0x4c09b570,
    /*0x0016b508,*/0x68236825,
    /*0x0016b50c,*/0x43132208,
    /*0x0016b510,*/0x68236023,
    /*0x0016b514,*/0x43133a04,
    /*0x0016b518,*/0x20266023,
    /*0x0016b51c,*/0xfe9cf71d,
    /*0x0016b520,*/0xff7af7ff,
    /*0x0016b524,*/0xfef4f71d,
    /*0x0016b528,*/0xbd706025,
    /*0x0016b52c,*/0x40580018,
    /*0x0016b530,*/0x46deb5f0,
    /*0x0016b534,*/0x464e4657,
    /*0x0016b538,*/0xb5e04645,
    /*0x0016b53c,*/0x4681b08b,
    /*0x0016b540,*/0x6803000d,
    /*0x0016b544,*/0x401a227f,
    /*0x0016b548,*/0x091c4692,
    /*0x0016b54c,*/0x4034260f,
    /*0x0016b550,*/0x9600401e,
    /*0x0016b554,*/0x4213220c,
    /*0x0016b558,*/0x4b3cd005,
    /*0x0016b55c,*/0x22006e9b,
    /*0x0016b560,*/0x20002100,
    /*0x0016b564,*/0x9b004798,
    /*0x0016b568,*/0xd905429c,
    /*0x0016b56c,*/0x6e9b4b37,
    /*0x0016b570,*/0x21002200,
    /*0x0016b574,*/0x47982000,
    /*0x0016b578,*/0x683e4f35,
    /*0x0016b57c,*/0x4b35683a,
    /*0x0016b580,*/0x401a469b,
    /*0x0016b584,*/0x005b2380,
    /*0x0016b588,*/0x603b4313,
    /*0x0016b58c,*/0x46984b32,
    /*0x0016b590,*/0x9301681b,
    /*0x0016b594,*/0x68134642,
    /*0x0016b598,*/0x43932202,
    /*0x0016b59c,*/0x60134642,
    /*0x0016b5a0,*/0xf71e4650,
    /*0x0016b5a4,*/0x464afc21,
    /*0x0016b5a8,*/0xa8036811,
    /*0x0016b5ac,*/0xfe3ef71e,
    /*0x0016b5b0,*/0xfc60f71e,
    /*0x0016b5b4,*/0x9b014642,
    /*0x0016b5b8,*/0x683a6013,
    /*0x0016b5bc,*/0x0fdb05f3,
    /*0x0016b5c0,*/0x4659021b,
    /*0x0016b5c4,*/0x4313400a,
    /*0x0016b5c8,*/0x9b00603b,
    /*0x0016b5cc,*/0xd830429c,
    /*0x0016b5d0,*/0x34200027,
    /*0x0016b5d4,*/0x4b210124,
    /*0x0016b5d8,*/0xa80318e4,
    /*0x0016b5dc,*/0x46984b20,
    /*0x0016b5e0,*/0x051b23f0,
    /*0x0016b5e4,*/0x1d2b469c,
    /*0x0016b5e8,*/0xe0054699,
    /*0x0016b5ec,*/0x34103701,
    /*0x0016b5f0,*/0x9a00b2fb,
    /*0x0016b5f4,*/0xd31c429a,
    /*0x0016b5f8,*/0x7d1a183b,
    /*0x0016b5fc,*/0x7bdb0212,
    /*0x0016b600,*/0x4643431a,
    /*0x0016b604,*/0x6022431a,
    /*0x0016b608,*/0x05195c3b,
    /*0x0016b60c,*/0x40314666,
    /*0x0016b610,*/0x0f5b071b,
    /*0x0016b614,*/0x430b075b,
    /*0x0016b618,*/0x02096861,
    /*0x0016b61c,*/0x430b0a09,
    /*0x0016b620,*/0x2d006063,
    /*0x0016b624,*/0x00fbd0e2,
    /*0x0016b628,*/0x464a50ea,
    /*0x0016b62c,*/0x50d16861,
    /*0x0016b630,*/0x22c0e7dc,
    /*0x0016b634,*/0x49090092,
    /*0x0016b638,*/0xf76d480a,
    /*0x0016b63c,*/0xb00bfa59,
    /*0x0016b640,*/0x4690bc3c,
    /*0x0016b644,*/0x46a24699,
    /*0x0016b648,*/0xbdf046ab,
    /*0x0016b64c,*/0x00161928,
    /*0x0016b650,*/0x40600400,
    /*0x0016b654,*/0xfffffeff,
    /*0x0016b658,*/0x40580018,
    /*0x0016b65c,*/0x001699cc,
    /*0x0016b660,*/0x80800000,
    /*0x0016b664,*/0x001e5180,
    /*0x0016b668,*/0x46deb5f0,
    /*0x0016b66c,*/0x464e4657,
    /*0x0016b670,*/0xb5e04645,
    /*0x0016b674,*/0x9001b083,
    /*0x0016b678,*/0x2400000d,
    /*0x0016b67c,*/0x4b264a25,
    /*0x0016b680,*/0x23e0469b,
    /*0x0016b684,*/0x469a04db,
    /*0x0016b688,*/0x059b23c0,
    /*0x0016b68c,*/0x4b234699,
    /*0x0016b690,*/0x4b234698,
    /*0x0016b694,*/0x4f239300,
    /*0x0016b698,*/0x68134e23,
    /*0x0016b69c,*/0x40034658,
    /*0x0016b6a0,*/0x40204650,
    /*0x0016b6a4,*/0x60134303,
    /*0x0016b6a8,*/0x46486813,
    /*0x0016b6ac,*/0x60134303,
    /*0x0016b6b0,*/0x681b4643,
    /*0x0016b6b4,*/0x68009800,
    /*0x0016b6b8,*/0x403b041b,
    /*0x0016b6bc,*/0x0c400440,
    /*0x0016b6c0,*/0xc5084303,
    /*0x0016b6c4,*/0x40336813,
    /*0x0016b6c8,*/0x23806013,
    /*0x0016b6cc,*/0x469c045b,
    /*0x0016b6d0,*/0x23804464,
    /*0x0016b6d4,*/0x429c04db,
    /*0x0016b6d8,*/0x2004d1df,
    /*0x0016b6dc,*/0x2b019b01,
    /*0x0016b6e0,*/0xb003d006,
    /*0x0016b6e4,*/0x4690bc3c,
    /*0x0016b6e8,*/0x46a24699,
    /*0x0016b6ec,*/0xbdf046ab,
    /*0x0016b6f0,*/0x681b4b0e,
    /*0x0016b6f4,*/0x4b0e610b,
    /*0x0016b6f8,*/0x614b681b,
    /*0x0016b6fc,*/0x681b4b0d,
    /*0x0016b700,*/0x4b0d618b,
    /*0x0016b704,*/0x61cb681b,
    /*0x0016b708,*/0x681b4b0c,
    /*0x0016b70c,*/0x3005620b,
    /*0x0016b710,*/0x46c0e7e7,
    /*0x0016b714,*/0x40620528,
    /*0x0016b718,*/0xf8ffffff,
    /*0x0016b71c,*/0x4062088c,
    /*0x0016b720,*/0x40620890,
    /*0x0016b724,*/0x7fff0000,
    /*0x0016b728,*/0xcfffffff,
    /*0x0016b72c,*/0x40620730,
    /*0x0016b730,*/0x40620734,
    /*0x0016b734,*/0x4062075c,
    /*0x0016b738,*/0x40620760,
    /*0x0016b73c,*/0x40622020,
    /*0x0016b740,*/0x0006b570,
    /*0x0016b744,*/0x2400000d,
    /*0x0016b748,*/0x58ea00a3,
    /*0x0016b74c,*/0xb2e00c11,
    /*0x0016b750,*/0xfe32f7ff,
    /*0x0016b754,*/0x2c043401,
    /*0x0016b758,*/0x2004d1f6,
    /*0x0016b75c,*/0xd0002e01,
    /*0x0016b760,*/0x4b08bd70,
    /*0x0016b764,*/0x601a692a,
    /*0x0016b768,*/0x696a4b07,
    /*0x0016b76c,*/0x4b07601a,
    /*0x0016b770,*/0x601a69aa,
    /*0x0016b774,*/0x69ea4b06,
    /*0x0016b778,*/0x6a2a601a,
    /*0x0016b77c,*/0x601a4b05,
    /*0x0016b780,*/0xe7ed3005,
    /*0x0016b784,*/0x40620730,
    /*0x0016b788,*/0x40620734,
    /*0x0016b78c,*/0x4062075c,
    /*0x0016b790,*/0x40620760,
    /*0x0016b794,*/0x40622020,
    /*0x0016b798,*/0xb08eb570,
    /*0x0016b79c,*/0xf71d000c,
    /*0x0016b7a0,*/0x0005fc91,
    /*0x0016b7a4,*/0xd0052801,
    /*0x0016b7a8,*/0xb2db1e83,
    /*0x0016b7ac,*/0xd93e2b01,
    /*0x0016b7b0,*/0xbd70b00e,
    /*0x0016b7b4,*/0x021b7863,
    /*0x0016b7b8,*/0x041278a2,
    /*0x0016b7bc,*/0x78224313,
    /*0x0016b7c0,*/0x78e24313,
    /*0x0016b7c4,*/0x43130612,
    /*0x0016b7c8,*/0x4d2c9300,
    /*0x0016b7cc,*/0x23f0682e,
    /*0x0016b7d0,*/0x439a0032,
    /*0x0016b7d4,*/0x22700013,
    /*0x0016b7d8,*/0x602b4313,
    /*0x0016b7dc,*/0x4668a901,
    /*0x0016b7e0,*/0xf848f71e,
    /*0x0016b7e4,*/0x7963602e,
    /*0x0016b7e8,*/0x79a2021b,
    /*0x0016b7ec,*/0x43130412,
    /*0x0016b7f0,*/0x43137922,
    /*0x0016b7f4,*/0x061279e2,
    /*0x0016b7f8,*/0x93004313,
    /*0x0016b7fc,*/0x46682100,
    /*0x0016b800,*/0xf9f2f71e,
    /*0x0016b804,*/0xf71e2000,
    /*0x0016b808,*/0xa905f8d9,
    /*0x0016b80c,*/0xf71e2001,
    /*0x0016b810,*/0x2001fe59,
    /*0x0016b814,*/0xff4cf71e,
    /*0x0016b818,*/0xfe74f7ff,
    /*0x0016b81c,*/0xa9012234,
    /*0x0016b820,*/0xf76d9812,
    /*0x0016b824,*/0x2334f965,
    /*0x0016b828,*/0x70139a13,
    /*0x0016b82c,*/0x7863e7c0,
    /*0x0016b830,*/0x78a2021b,
    /*0x0016b834,*/0x43130412,
    /*0x0016b838,*/0x43137822,
    /*0x0016b83c,*/0x061278e2,
    /*0x0016b840,*/0x93004313,
    /*0x0016b844,*/0x68264c0d,
    /*0x0016b848,*/0x003223f0,
    /*0x0016b84c,*/0x0013439a,
    /*0x0016b850,*/0x43132270,
    /*0x0016b854,*/0xa9016023,
    /*0x0016b858,*/0xf7ff4668,
    /*0x0016b85c,*/0x6026fe69,
    /*0x0016b860,*/0xf71e0028,
    /*0x0016b864,*/0xf7ffff25,
    /*0x0016b868,*/0x2230fe21,
    /*0x0016b86c,*/0x9812a901,
    /*0x0016b870,*/0xf93ef76d,
    /*0x0016b874,*/0x9a132330,
    /*0x0016b878,*/0xe7997013,
    /*0x0016b87c,*/0x40620508,
    /*0x0016b880,*/0x43544150,
    /*0x0016b884,*/0x21212148,
    /*0x0016b888,*/0x0000000a,
    /*0x0016b88c,*/0x61726170,
    /*0x0016b890,*/0x70253a6d,
    /*0x0016b894,*/0x0000000a,
    /*0x0016b898,*/0x636e7566,
    /*0x0016b89c,*/0x756f6620,
    /*0x0016b8a0,*/0x202c646e,
    /*0x0016b8a4,*/0x202c6425,
    /*0x0016b8a8,*/0x000a7025,
    /*0x0016b8ac,*/0x0016272c,
    /*0x0016b8b0,*/0x00000000,
    /*0x0016b8b4,*/0x00000000,
    /*0x0016b8b8,*/0xfbccf0b5,
    /*0x0016b8bc,*/0xf9b9f0b4,
    /*0x0016b8c0,*/0xf866f0b4,
};

const uint32_t VAR_WITH_VERx(fw_patch_tws_msg_en_table, 2)[][2] =
{
    {(0x00161184 + 0 * 8), (0x0016ae5c + 1)},//lmp_tws_con_req_msg_handler(lc_lmp_tws_handler_tab[0], fix tws msg sequence bug)
};

const uint32_t VAR_WITH_VERx(fw_patch_slp_en_table, 2)[][2] =
{
    {(0x00161928 + 280 * 4), (0x0016af14 + 1)},//rwip_sleep_preprocess
};

const uint32_t VAR_WITH_VERx(fw_patch_uart1_en_table, 2)[][2] =
{
    {(0x00161928 + 124 * 4), (0x0016ae08 + 1)},//uart1_init
    {(0x00161928 + 278 * 4), (0x0016af90 + 1)},//fw_init_done_set
};

const uint32_t VAR_WITH_VERx(fw_patch_rf_en_table, 2)[][2] =
{
    {(0x00161928 + 28 * 4), (0x0016ae34 + 1)},//rwip_setting_Init
    {(0x00161928 + 23 * 4), (0x0016afc8 + 1)},//rf_init
    {(0x00161928 + 127 * 4), (0x0016b16c + 1)},//wlan_rf_config
    {(0x00161928 + 130 * 4), (0x0016b374 + 1)},//rf_config
    {(0x00161928 + 140 * 4), (0x0016b668 + 1)},//btrd_pre_pwrdn
    {(0x00161928 + 141 * 4), (0x0016b740 + 1)},//btwr_pst_pwrup
    {(0x00161928 + 131 * 4), (0x0016b798 + 1)},//rf_calib
};

#if FIX_BOND_ERROR
const uint32_t VAR_WITH_VERx(fw_patch_extra_data_table, 2)[][2] =
{
#if FIX_BOND_ERROR
    {0x0016f6a0,(0x3dul << 24)},///Reset_Handler_C(use this patch if you want to fix bondid bug)
#endif
};
#endif

const uint32_t VAR_WITH_VERx(fw_patch_extra_en_table, 2)[][2] =
{
#if FIX_BOND_ERROR
    {0x0008be0c,0x0016f6a0},///Reset_Handler_C(use this patch if you want to fix bondid bug)
    {0x00088270,0x0016f6a0},///rwip_setting_Init(use this patch if you want to fix bondid bug)
#endif
    {0x000b5964,0xfbccf0b5},///ld_acl_test_mode_update in ld_acl_test_mode_set
    {0x000b6d88,0xf0b40038},///ld_acl_test_mode_update in ld_acl_frm_cbk
    {0x000b6d8c,0x23a8f9b9},///ld_acl_test_mode_update in ld_acl_frm_cbk
    {0x000b7030,0xf866f0b4},///ld_acl_test_mode_update in ld_tws_acl_frm_cbk
};

const uint32_t VAR_WITH_VERx(minisys_patch_data_table, 2)[] =
{
    /*0x001e7800,*/0x001e7800,
    /*0x000003f0,*/0x000003f0,
    /*0x001e7800,*/0x22034909,
    /*0x001e7804,*/0x3380000b,
    /*0x001e7808,*/0x435a881b,
    /*0x001e780c,*/0x185b009b,
    /*0x001e7810,*/0xb2920018,
    /*0x001e7814,*/0x8819300e,
    /*0x001e7818,*/0xd0012900,
    /*0x001e781c,*/0x80191889,
    /*0x001e7820,*/0x42833302,
    /*0x001e7824,*/0x4770d1f7,
    /*0x001e7828,*/0x001e8000,
    /*0x001e782c,*/0x22034909,
    /*0x001e7830,*/0x3384000b,
    /*0x001e7834,*/0x435a881b,
    /*0x001e7838,*/0x185b009b,
    /*0x001e783c,*/0xb2920018,
    /*0x001e7840,*/0x8819300e,
    /*0x001e7844,*/0xd0012900,
    /*0x001e7848,*/0x80191889,
    /*0x001e784c,*/0x42833302,
    /*0x001e7850,*/0x4770d1f7,
    /*0x001e7854,*/0x001e8000,
    /*0x001e7858,*/0x22034909,
    /*0x001e785c,*/0x3388000b,
    /*0x001e7860,*/0x435a881b,
    /*0x001e7864,*/0x185b009b,
    /*0x001e7868,*/0xb2920018,
    /*0x001e786c,*/0x8819300e,
    /*0x001e7870,*/0xd0012900,
    /*0x001e7874,*/0x80191889,
    /*0x001e7878,*/0x42833302,
    /*0x001e787c,*/0x4770d1f7,
    /*0x001e7880,*/0x001e8000,
    /*0x001e7884,*/0xb5104907,
    /*0x001e7888,*/0x338c000b,
    /*0x001e788c,*/0x00838818,
    /*0x001e7890,*/0x5acb185c,
    /*0x001e7894,*/0xd0032b00,
    /*0x001e7898,*/0x43422203,
    /*0x001e789c,*/0x8023189b,
    /*0x001e78a0,*/0x46c0bd10,
    /*0x001e78a4,*/0x001e8000,
    /*0x001e78a8,*/0x22034909,
    /*0x001e78ac,*/0x3394000b,
    /*0x001e78b0,*/0x435a881b,
    /*0x001e78b4,*/0x185b009b,
    /*0x001e78b8,*/0xb2920018,
    /*0x001e78bc,*/0x88193018,
    /*0x001e78c0,*/0xd0012900,
    /*0x001e78c4,*/0x80191889,
    /*0x001e78c8,*/0x42833302,
    /*0x001e78cc,*/0x4770d1f7,
    /*0x001e78d0,*/0x001e8000,
    /*0x001e78d4,*/0x22034909,
    /*0x001e78d8,*/0x33a0000b,
    /*0x001e78dc,*/0x435a881b,
    /*0x001e78e0,*/0x185b009b,
    /*0x001e78e4,*/0xb2920018,
    /*0x001e78e8,*/0x88193018,
    /*0x001e78ec,*/0xd0012900,
    /*0x001e78f0,*/0x80191889,
    /*0x001e78f4,*/0x42833302,
    /*0x001e78f8,*/0x4770d1f7,
    /*0x001e78fc,*/0x001e8000,
    /*0x001e7900,*/0x22034909,
    /*0x001e7904,*/0x33a4000b,
    /*0x001e7908,*/0x435a881b,
    /*0x001e790c,*/0x185b009b,
    /*0x001e7910,*/0xb2920018,
    /*0x001e7914,*/0x88193018,
    /*0x001e7918,*/0xd0012900,
    /*0x001e791c,*/0x80191889,
    /*0x001e7920,*/0x42833302,
    /*0x001e7924,*/0x4770d1f7,
    /*0x001e7928,*/0x001e8000,
    /*0x001e792c,*/0xf01ab510,
    /*0x001e7930,*/0xf7fff9b7,
    /*0x001e7934,*/0xf7ffff65,
    /*0x001e7938,*/0xf7ffff79,
    /*0x001e793c,*/0xf7ffff8d,
    /*0x001e7940,*/0xf7ffffa1,
    /*0x001e7944,*/0xf7ffffb1,
    /*0x001e7948,*/0xf7ffffc5,
    /*0x001e794c,*/0x2200ffd9,
    /*0x001e7950,*/0x88194b04,
    /*0x001e7954,*/0x00893201,
    /*0x001e7958,*/0x33048019,
    /*0x001e795c,*/0xd1f82a32,
    /*0x001e7960,*/0x46c0bd10,
    /*0x001e7964,*/0x001e8000,
    /*0x001e7968,*/0xf01ab510,
    /*0x001e796c,*/0x2200f9c1,
    /*0x001e7970,*/0x88194b04,
    /*0x001e7974,*/0x08893201,
    /*0x001e7978,*/0x33048019,
    /*0x001e797c,*/0xd1f82a32,
    /*0x001e7980,*/0x46c0bd10,
    /*0x001e7984,*/0x001e8000,
    /*0x001e7988,*/0x2540b570,
    /*0x001e798c,*/0xf01d4c17,
    /*0x001e7990,*/0x6823fb85,
    /*0x001e7994,*/0xd1102b00,
    /*0x001e7998,*/0x68e32540,
    /*0x001e799c,*/0xd1182b00,
    /*0x001e79a0,*/0x2b0068a3,
    /*0x001e79a4,*/0x4a12d008,
    /*0x001e79a8,*/0x06526812,
    /*0x001e79ac,*/0x69dad504,
    /*0x001e79b0,*/0x48106859,
    /*0x001e79b4,*/0xfec0f018,
    /*0x001e79b8,*/0x4a0dbd70,
    /*0x001e79bc,*/0x6812681e,
    /*0x001e79c0,*/0xd004422a,
    /*0x001e79c4,*/0x685969da,
    /*0x001e79c8,*/0xf018480b,
    /*0x001e79cc,*/0x0033feb5,
    /*0x001e79d0,*/0x4a07e7e0,
    /*0x001e79d4,*/0x6812681e,
    /*0x001e79d8,*/0xd004422a,
    /*0x001e79dc,*/0x685969da,
    /*0x001e79e0,*/0xf0184806,
    /*0x001e79e4,*/0x0033fea9,
    /*0x001e79e8,*/0x46c0e7d8,
    /*0x001e79ec,*/0x001e03dc,
    /*0x001e79f0,*/0x001e03cc,
    /*0x001e79f4,*/0x001e7bc2,
    /*0x001e79f8,*/0x001e7bac,
    /*0x001e79fc,*/0x001e7bb7,
    /*0x001e7a00,*/0x4b0e2204,
    /*0x001e7a04,*/0x4b0e601a,
    /*0x001e7a08,*/0x601a4a0e,
    /*0x001e7a0c,*/0x4a0f4b0e,
    /*0x001e7a10,*/0x4b0f601a,
    /*0x001e7a14,*/0x601a4a0f,
    /*0x001e7a18,*/0x4a104b0f,
    /*0x001e7a1c,*/0x4b10601a,
    /*0x001e7a20,*/0x601a4a10,
    /*0x001e7a24,*/0x4a114b10,
    /*0x001e7a28,*/0x4b11601a,
    /*0x001e7a2c,*/0x601a4a11,
    /*0x001e7a30,*/0x4b112288,
    /*0x001e7a34,*/0x601a0212,
    /*0x001e7a38,*/0x46c04770,
    /*0x001e7a3c,*/0x40500028,
    /*0x001e7a40,*/0x406200f0,
    /*0x001e7a44,*/0x00002412,
    /*0x001e7a48,*/0x40620100,
    /*0x001e7a4c,*/0x0b0a0908,
    /*0x001e7a50,*/0x40620104,
    /*0x001e7a54,*/0x1b1a1918,
    /*0x001e7a58,*/0x40620108,
    /*0x001e7a5c,*/0x17160000,
    /*0x001e7a60,*/0x4062010c,
    /*0x001e7a64,*/0x000c0302,
    /*0x001e7a68,*/0x40600450,
    /*0x001e7a6c,*/0x81008583,
    /*0x001e7a70,*/0x406200fc,
    /*0x001e7a74,*/0x06001100,
    /*0x001e7a78,*/0x40600050,
    /*0x001e7a7c,*/0x4904220f,
#if (MINISYS_UART_GPIO3 == 0)
    /*0x001e7a80,*/0x4393694b,
    /*0x001e7a84,*/0x2305001a,
    /*0x001e7a88,*/0x614b4313,
#else
    /*0x001e7a80,*/0x439368cb,
    /*0x001e7a84,*/0x2305001a,
    /*0x001e7a88,*/0x60cb4313,
#endif
    /*0x001e7a8c,*/0x46c04770,
    /*0x001e7a90,*/0x40503000,
    /*0x001e7a94,*/0x4c0db510,
    /*0x001e7a98,*/0x43db6de3,
    /*0x001e7a9c,*/0xd109079b,
    /*0x001e7aa0,*/0xf8a6f019,
    /*0x001e7aa4,*/0xb2db1e43,
    /*0x001e7aa8,*/0xd8042b01,
    /*0x001e7aac,*/0x4b086d62,
    /*0x001e7ab0,*/0x65634313,
    /*0x001e7ab4,*/0x2803bd10,
    /*0x001e7ab8,*/0x2302d1fc,
    /*0x001e7abc,*/0x43136d62,
    /*0x001e7ac0,*/0x6d636563,
    /*0x001e7ac4,*/0x40134a03,
    /*0x001e7ac8,*/0x46c0e7f3,
    /*0x001e7acc,*/0x40506000,
    /*0x001e7ad0,*/0x00000802,
    /*0x001e7ad4,*/0xfffff7ff,
    /*0x001e7ad8,*/0x00004770,
    /*0x001e7adc,*/0xb5704a16,
    /*0x001e7ae0,*/0x6c506c91,
    /*0x001e7ae4,*/0x0c9b008b,
    /*0x001e7ae8,*/0x64534303,
    /*0x001e7aec,*/0xd521010b,
    /*0x001e7af0,*/0x208024c0,
    /*0x001e7af4,*/0x4b1125c5,
    /*0x001e7af8,*/0x03c00064,
    /*0x001e7afc,*/0x00ad5118,
    /*0x001e7b00,*/0x490f595a,
    /*0x001e7b04,*/0x22fc4011,
    /*0x001e7b08,*/0x430a0412,
    /*0x001e7b0c,*/0x6018515a,
    /*0x001e7b10,*/0x51182002,
    /*0x001e7b14,*/0x591a1924,
    /*0x001e7b18,*/0x4011490a,
    /*0x001e7b1c,*/0x021222fc,
    /*0x001e7b20,*/0x511a430a,
    /*0x001e7b24,*/0x60184c08,
    /*0x001e7b28,*/0x47986a23,
    /*0x001e7b2c,*/0xd0012800,
    /*0x001e7b30,*/0x47986923,
    /*0x001e7b34,*/0x46c0bd70,
    /*0x001e7b38,*/0x40506000,
    /*0x001e7b3c,*/0xe000e100,
    /*0x001e7b40,*/0xff00ffff,
    /*0x001e7b44,*/0xffff00ff,
    /*0x001e7b48,*/0x001e003c,
    /*0x001e7b4c,*/0xb5104814,
    /*0x001e7b50,*/0x041a68c3,
    /*0x001e7b54,*/0x2280d502,
    /*0x001e7b58,*/0x60820412,
    /*0x001e7b5c,*/0xd51e05db,
    /*0x001e7b60,*/0x4a102108,
    /*0x001e7b64,*/0x6d546d53,
    /*0x001e7b68,*/0x0d9b059b,
    /*0x001e7b6c,*/0x430b0aa4,
    /*0x001e7b70,*/0x432302a4,
    /*0x001e7b74,*/0x68146553,
    /*0x001e7b78,*/0x05a46813,
    /*0x001e7b7c,*/0x0a9b0da4,
    /*0x001e7b80,*/0x029b4321,
    /*0x001e7b84,*/0x23804319,
    /*0x001e7b88,*/0x22806011,
    /*0x001e7b8c,*/0x6083025b,
    /*0x001e7b90,*/0x03d24b05,
    /*0x001e7b94,*/0xf3bf67da,
    /*0x001e7b98,*/0xf3bf8f4f,
    /*0x001e7b9c,*/0xbd108f6f,
    /*0x001e7ba0,*/0x40501000,
    /*0x001e7ba4,*/0x40506000,
    /*0x001e7ba8,*/0xe000e104,
    /*0x001e7bac,*/0x3a317832,
    /*0x001e7bb0,*/0x25205825,
    /*0x001e7bb4,*/0x32000a58,
    /*0x001e7bb8,*/0x253a3278,
    /*0x001e7bbc,*/0x58252058,
    /*0x001e7bc0,*/0x7832000a,
    /*0x001e7bc4,*/0x58253a33,
    /*0x001e7bc8,*/0x0a582520,
    /*0x001e7bcc,*/0x00000000,
    /*0x001e7bd0,*/0x1b456933,
    /*0x001e7bd4,*/0xdc002d00,
    /*0x001e7bd8,*/0x4f012500,
    /*0x001e7bdc,*/0x00004738,
    /*0x001e7be0,*/0x00203bb9,
    /*0x001e7be4,*/0xf80cf7e4,
    /*0x001e7be8,*/0x001e7add,
    /*0x001e7bec,*/0x001e7b4d,

};

const uint32_t VAR_WITH_VERx(minisys_patch_en_table, 2)[][2] =
{
    {(0x001e003c + 3 * 4), (0x001e792c + 1)},///btdm_save(replace aon_btdm_func_tbl[3])
    {(0x001e003c + 4 * 4), (0x001e7968 + 1)},///btdm_1st_restore(replace aon_btdm_func_tbl[4])
    {(0x001e01f0 + 45 * 4),(0x001e7988 + 1)},///sch_arb_env_restore(replace aon_sram_restore_handler[46])
    //{(0x001e003c + 17 * 4),(0x001e7a00 + 1)},///monitor_init(replace aon_btdm_func_tbl[17])
#if MINISYS_UART_ENABLE
    {(0x001e003c + 16 * 4),(0x001e7a7c + 1)},///btdm_uart_iomux_config(replace aon_btdm_func_tbl[16], used in HIBERNATE)
#endif
    {(0x001e003c + 13 * 4),(0x001e7a94 + 1)},///sysctrl_init(replace aon_btdm_func_tbl[13])
    {(0x001e0018 + 1 * 4),(0x001e7ad8 + 1)},///wifi_lp_timeout_handler(replace aon_wifi_func_tbl[1])
};

const uint32_t VAR_WITH_VERx(minisys_patch_extra_en_table, 2)[][2] =
{
    {0x002001e4, 0x00582971},///__main--->aon_uart_init(use this patch if you want to set aon uart baudrate to 5777777)
    {0x00203bb4, 0xf80cf7e4},///rwip_sleep(use this patch to fix bug of comparison between int32_t and uint32_t, if sleep_duration < 0, then set it to 0 at rwip_sleep line 973)
    {0x002000b8, 0x001e7add},///pwrctrl_irq_patch
    {0x00200098, 0x001e7b4d},///TIMER20_IRQHandler_patch
};

bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_a1, 2)[] = {
    {1, (uint32_t *)&VAR_WITH_VERx(fw_patch_data_table, 2), sizeof(VAR_WITH_VERx(fw_patch_data_table, 2)) / sizeof(VAR_WITH_VERx(fw_patch_data_table, 2)[0])},
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_slp_en_table, 2), sizeof(VAR_WITH_VERx(fw_patch_slp_en_table, 2)) / sizeof(VAR_WITH_VERx(fw_patch_slp_en_table, 2)[0])},
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_uart1_en_table, 2), sizeof(VAR_WITH_VERx(fw_patch_uart1_en_table, 2)) / sizeof(VAR_WITH_VERx(fw_patch_uart1_en_table, 2)[0])},
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_rf_en_table, 2), sizeof(VAR_WITH_VERx(fw_patch_rf_en_table, 2)) / sizeof(VAR_WITH_VERx(fw_patch_rf_en_table, 2)[0])},
#if FIX_BOND_ERROR
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_extra_data_table, 2), sizeof(VAR_WITH_VERx(fw_patch_extra_data_table, 2)) / sizeof(VAR_WITH_VERx(fw_patch_extra_data_table, 2)[0])}
#endif
};

bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_a2, 2)[] = {
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_tws_msg_en_table, 2), sizeof(VAR_WITH_VERx(fw_patch_tws_msg_en_table, 2)) / sizeof(VAR_WITH_VERx(fw_patch_tws_msg_en_table, 2)[0])},
};

bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_b1, 2)[] = {
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_extra_en_table, 2), sizeof(VAR_WITH_VERx(fw_patch_extra_en_table, 2)) / sizeof(VAR_WITH_VERx(fw_patch_extra_en_table, 2)[0])}
};

//bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_b2, 2)[] = {
//};

bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_c1, 2)[] = {
    {1, (uint32_t *)&VAR_WITH_VERx(minisys_patch_data_table, 2), sizeof(VAR_WITH_VERx(minisys_patch_data_table, 2)) / sizeof(VAR_WITH_VERx(minisys_patch_data_table, 2)[0])}
};

bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_c2, 2)[] = {
    {2, (uint32_t *)&VAR_WITH_VERx(minisys_patch_en_table, 2), sizeof(VAR_WITH_VERx(minisys_patch_en_table, 2)) / sizeof(VAR_WITH_VERx(minisys_patch_en_table, 2)[0])}
};


bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_d1, 2)[] = {
    {2, (uint32_t *)&VAR_WITH_VERx(minisys_patch_extra_en_table, 2), sizeof(VAR_WITH_VERx(minisys_patch_extra_en_table, 2)) / sizeof(VAR_WITH_VERx(minisys_patch_extra_en_table, 2)[0])}
};

//bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_d2, 2)[] = {
//};

const uint32_t VAR_WITH_VERx(fw_patch_data_table, 3)[] =
{
    /*0x0016ad70,*/0x0016ad70,
    /*0x00000a38,*/0x00000a38,
    /*0x0016ad70,*/0x2262b510,
    /*0x0016ad74,*/0x4b0f4342,
    /*0x0016ad78,*/0x4462469c,
    /*0x0016ad7c,*/0xb2db8813,
    /*0x0016ad80,*/0xd0132b1e,
    /*0x0016ad84,*/0x480d490c,
    /*0x0016ad88,*/0x480d5c0c,
    /*0x0016ad8c,*/0x19095c09,
    /*0x0016ad90,*/0x428b2001,
    /*0x0016ad94,*/0x1b1bdb09,
    /*0x0016ad98,*/0x2b10b2db,
    /*0x0016ad9c,*/0x8811d008,
    /*0x0016ada0,*/0x438120ff,
    /*0x0016ada4,*/0x8013430b,
    /*0x0016ada8,*/0xbd102000,
    /*0x0016adac,*/0xe7e93b0e,
    /*0x0016adb0,*/0xe7f4330e,
    /*0x0016adb4,*/0x4061650c,
    /*0x0016adb8,*/0x00161e7c,
    /*0x0016adbc,*/0x00000257,
    /*0x0016adc0,*/0x00000255,
    /*0x0016adc4,*/0x2262b530,
    /*0x0016adc8,*/0x4b0f4342,
    /*0x0016adcc,*/0x4462469c,
    /*0x0016add0,*/0xb2db8813,
    /*0x0016add4,*/0xd0122b1e,
    /*0x0016add8,*/0x480d490c,
    /*0x0016addc,*/0x191d5c0c,
    /*0x0016ade0,*/0x5c093803,
    /*0x0016ade4,*/0x428d2001,
    /*0x0016ade8,*/0xb2ebdc08,
    /*0x0016adec,*/0xd0082b10,
    /*0x0016adf0,*/0x20ff8811,
    /*0x0016adf4,*/0x430b4381,
    /*0x0016adf8,*/0x20008013,
    /*0x0016adfc,*/0x3b0ebd30,
    /*0x0016ae00,*/0x330ee7ea,
    /*0x0016ae04,*/0x46c0e7f4,
    /*0x0016ae08,*/0x4061650c,
    /*0x0016ae0c,*/0x00161e7c,
    /*0x0016ae10,*/0x00000257,
    /*0x0016ae14,*/0x4d07b570,
    /*0x0016ae18,*/0x006424f8,
    /*0x0016ae1c,*/0x512b2300,
    /*0x0016ae20,*/0xfb84f71d,
    /*0x0016ae24,*/0x512b4b04,
    /*0x0016ae28,*/0x22804b04,
    /*0x0016ae2c,*/0x601a0292,
    /*0x0016ae30,*/0x46c0bd70,
    /*0x0016ae34,*/0x00161928,
    /*0x0016ae38,*/0x0016ae15,
    /*0x0016ae3c,*/0xe000e100,
    /*0x0016ae40,*/0x4c06b510,
    /*0x0016ae44,*/0x67232300,
    /*0x0016ae48,*/0xf908f71d,
    /*0x0016ae4c,*/0x23954a04,
    /*0x0016ae50,*/0x2140009b,
    /*0x0016ae54,*/0x4b0354d1,
    /*0x0016ae58,*/0xbd106723,
    /*0x0016ae5c,*/0x00161928,
    /*0x0016ae60,*/0x00161e7c,
    /*0x0016ae64,*/0x0016ae41,
    /*0x0016ae68,*/0xb082b570,
    /*0x0016ae6c,*/0xa8014669,
    /*0x0016ae70,*/0xfcf2f740,
    /*0x0016ae74,*/0x9b009c01,
    /*0x0016ae78,*/0x367a001e,
    /*0x0016ae7c,*/0x0092229c,
    /*0x0016ae80,*/0xd9194296,
    /*0x0016ae84,*/0x3bff3bf8,
    /*0x0016ae88,*/0x3401001e,
    /*0x0016ae8c,*/0x09240124,
    /*0x0016ae90,*/0x052d2580,
    /*0x0016ae94,*/0xa8014669,
    /*0x0016ae98,*/0xfcdef740,
    /*0x0016ae9c,*/0x1aa39a01,
    /*0x0016aea0,*/0x091b011b,
    /*0x0016aea4,*/0xd9f542ab,
    /*0x0016aea8,*/0x01121b12,
    /*0x0016aeac,*/0x9b00d0f2,
    /*0x0016aeb0,*/0xd3ef42b3,
    /*0x0016aeb4,*/0xbd70b002,
    /*0x0016aeb8,*/0xd2e942b3,
    /*0x0016aebc,*/0x052d2580,
    /*0x0016aec0,*/0x9b00e002,
    /*0x0016aec4,*/0xd2f542b3,
    /*0x0016aec8,*/0xa8014669,
    /*0x0016aecc,*/0xfcc4f740,
    /*0x0016aed0,*/0x1aa39a01,
    /*0x0016aed4,*/0x091b011b,
    /*0x0016aed8,*/0xd9f242ab,
    /*0x0016aedc,*/0x01121b12,
    /*0x0016aee0,*/0xe7e7d0ef,
    /*0x0016aee4,*/0xd00e2800,
    /*0x0016aee8,*/0x23804a0a,
    /*0x0016aeec,*/0x02892180,
    /*0x0016aef0,*/0xf3bf50d1,
    /*0x0016aef4,*/0xf3bf8f4f,
    /*0x0016aef8,*/0x4a078f6f,
    /*0x0016aefc,*/0x21086813,
    /*0x0016af00,*/0x6013430b,
    /*0x0016af04,*/0x4a044770,
    /*0x0016af08,*/0x21086813,
    /*0x0016af0c,*/0x6013438b,
    /*0x0016af10,*/0x46c0e7f8,
    /*0x0016af14,*/0xe000e100,
    /*0x0016af18,*/0x40044084,
    /*0x0016af1c,*/0x0004b510,
    /*0x0016af20,*/0xfb3cf71a,
    /*0x0016af24,*/0x60a34b02,
    /*0x0016af28,*/0x60e34b02,
    /*0x0016af2c,*/0x46c0bd10,
    /*0x0016af30,*/0x0016ad71,
    /*0x0016af34,*/0x0016adc5,
    /*0x0016af38,*/0x46deb5f8,
    /*0x0016af3c,*/0x464e4657,
    /*0x0016af40,*/0xb5e04645,
    /*0x0016af44,*/0x68234c6a,
    /*0x0016af48,*/0x40334e6a,
    /*0x0016af4c,*/0x4d6a6023,
    /*0x0016af50,*/0x4a6a682b,
    /*0x0016af54,*/0x602b4013,
    /*0x0016af58,*/0xfe96f71d,
    /*0x0016af5c,*/0x4a686823,
    /*0x0016af60,*/0x60234013,
    /*0x0016af64,*/0x4a67682b,
    /*0x0016af68,*/0x602b4013,
    /*0x0016af6c,*/0x4a666823,
    /*0x0016af70,*/0x2380401a,
    /*0x0016af74,*/0x431300db,
    /*0x0016af78,*/0x68236023,
    /*0x0016af7c,*/0x2380401e,
    /*0x0016af80,*/0x4333011b,
    /*0x0016af84,*/0x4b616023,
    /*0x0016af88,*/0x257f469a,
    /*0x0016af8c,*/0x23ff0022,
    /*0x0016af90,*/0x4b5f4699,
    /*0x0016af94,*/0x4b594698,
    /*0x0016af98,*/0x2180469c,
    /*0x0016af9c,*/0x002e0189,
    /*0x0016afa0,*/0xb2ed3504,
    /*0x0016afa4,*/0x00284654,
    /*0x0016afa8,*/0x464f6813,
    /*0x0016afac,*/0x430343bb,
    /*0x0016afb0,*/0x46436013,
    /*0x0016afb4,*/0x601f6827,
    /*0x0016afb8,*/0x46676813,
    /*0x0016afbc,*/0x2780403b,
    /*0x0016afc0,*/0x433b007f,
    /*0x0016afc4,*/0x46c06013,
    /*0x0016afc8,*/0x46c046c0,
    /*0x0016afcc,*/0x681346c0,
    /*0x0016afd0,*/0xd0fc420b,
    /*0x0016afd4,*/0xb2c03801,
    /*0x0016afd8,*/0x42b03404,
    /*0x0016afdc,*/0x2310d1e4,
    /*0x0016afe0,*/0x44da469b,
    /*0x0016afe4,*/0xd1da2d8f,
    /*0x0016afe8,*/0x68234c41,
    /*0x0016afec,*/0x40134a46,
    /*0x0016aff0,*/0xf71d6023,
    /*0x0016aff4,*/0x6823fe50,
    /*0x0016aff8,*/0x40134a3e,
    /*0x0016affc,*/0x4b3e6023,
    /*0x0016b000,*/0x2180681a,
    /*0x0016b004,*/0x601a430a,
    /*0x0016b008,*/0x493c681a,
    /*0x0016b00c,*/0x22804011,
    /*0x0016b010,*/0x430a0052,
    /*0x0016b014,*/0x2010601a,
    /*0x0016b018,*/0x271f001a,
    /*0x0016b01c,*/0x4d3e4e3d,
    /*0x0016b020,*/0x21802420,
    /*0x0016b024,*/0x681300c9,
    /*0x0016b028,*/0x430343bb,
    /*0x0016b02c,*/0x00836013,
    /*0x0016b030,*/0x602b58f3,
    /*0x0016b034,*/0x43a36813,
    /*0x0016b038,*/0x60134323,
    /*0x0016b03c,*/0x46c046c0,
    /*0x0016b040,*/0x46c046c0,
    /*0x0016b044,*/0x420b6813,
    /*0x0016b048,*/0x3001d0fc,
    /*0x0016b04c,*/0xd1ea2820,
    /*0x0016b050,*/0x68234c29,
    /*0x0016b054,*/0x43932280,
    /*0x0016b058,*/0xf71d6023,
    /*0x0016b05c,*/0x6823fe1c,
    /*0x0016b060,*/0x402b4d26,
    /*0x0016b064,*/0x4a2d6023,
    /*0x0016b068,*/0x21026813,
    /*0x0016b06c,*/0x6013438b,
    /*0x0016b070,*/0x68134a2b,
    /*0x0016b074,*/0x400b492b,
    /*0x0016b078,*/0x4b2b6013,
    /*0x0016b07c,*/0x601a2200,
    /*0x0016b080,*/0xfe02f71d,
    /*0x0016b084,*/0x680b491a,
    /*0x0016b088,*/0x40134a1d,
    /*0x0016b08c,*/0x01522280,
    /*0x0016b090,*/0x600b4313,
    /*0x0016b094,*/0x4817680b,
    /*0x0016b098,*/0x23804018,
    /*0x0016b09c,*/0x4303011b,
    /*0x0016b0a0,*/0x6823600b,
    /*0x0016b0a4,*/0x40194917,
    /*0x0016b0a8,*/0x009b2380,
    /*0x0016b0ac,*/0x6023430b,
    /*0x0016b0b0,*/0x401d6823,
    /*0x0016b0b4,*/0x005b2380,
    /*0x0016b0b8,*/0x6023432b,
    /*0x0016b0bc,*/0x68194b1b,
    /*0x0016b0c0,*/0x601a430a,
    /*0x0016b0c4,*/0x68134a1a,
    /*0x0016b0c8,*/0x400b491a,
    /*0x0016b0cc,*/0x4b1a6013,
    /*0x0016b0d0,*/0x491a681a,
    /*0x0016b0d4,*/0x601a400a,
    /*0x0016b0d8,*/0x22806819,
    /*0x0016b0dc,*/0x430a05d2,
    /*0x0016b0e0,*/0xbc3c601a,
    /*0x0016b0e4,*/0x46994690,
    /*0x0016b0e8,*/0x46ab46a2,
    /*0x0016b0ec,*/0x46c0bdf8,
    /*0x0016b0f0,*/0x40344060,
    /*0x0016b0f4,*/0xfffff7ff,
    /*0x0016b0f8,*/0x4034406c,
    /*0x0016b0fc,*/0xfffffeff,
    /*0x0016b100,*/0xffffefff,
    /*0x0016b104,*/0xfffffdff,
    /*0x0016b108,*/0xfffffbff,
    /*0x0016b10c,*/0x00169bd8,
    /*0x0016b110,*/0x40344064,
    /*0x0016b114,*/0x00169958,
    /*0x0016b118,*/0x40344070,
    /*0x0016b11c,*/0x40580018,
    /*0x0016b120,*/0x40344058,
    /*0x0016b124,*/0xfbffffff,
    /*0x0016b128,*/0x40344008,
    /*0x0016b12c,*/0x40342014,
    /*0x0016b130,*/0x40342018,
    /*0x0016b134,*/0xfffbffff,
    /*0x0016b138,*/0x4034201c,
    /*0x0016b13c,*/0xdfffffff,
    /*0x0016b140,*/0x0004b510,
    /*0x0016b144,*/0xffd6f71d,
    /*0x0016b148,*/0xd0002801,
    /*0x0016b14c,*/0x4a20bd10,
    /*0x0016b150,*/0x009b2395,
    /*0x0016b154,*/0x4b1f5cd2,
    /*0x0016b158,*/0x4b1f701a,
    /*0x0016b15c,*/0x4b1f681a,
    /*0x0016b160,*/0x2c01601a,
    /*0x0016b164,*/0x2302d021,
    /*0x0016b168,*/0x439a0022,
    /*0x0016b16c,*/0x4b1cd005,
    /*0x0016b170,*/0x22006e9b,
    /*0x0016b174,*/0x20002100,
    /*0x0016b178,*/0x4a154798,
    /*0x0016b17c,*/0x009b2395,
    /*0x0016b180,*/0x54d12140,
    /*0x0016b184,*/0x4a174b14,
    /*0x0016b188,*/0x2340601a,
    /*0x0016b18c,*/0x222d4916,
    /*0x0016b190,*/0x2c01548b,
    /*0x0016b194,*/0x2c02d915,
    /*0x0016b198,*/0x4a14d1d8,
    /*0x0016b19c,*/0x21ff8813,
    /*0x0016b1a0,*/0x39bf438b,
    /*0x0016b1a4,*/0x8013430b,
    /*0x0016b1a8,*/0x4a09e7d0,
    /*0x0016b1ac,*/0x009b2395,
    /*0x0016b1b0,*/0x54d12130,
    /*0x0016b1b4,*/0x4a0b4b08,
    /*0x0016b1b8,*/0x2330601a,
    /*0x0016b1bc,*/0x222d490a,
    /*0x0016b1c0,*/0x490b548b,
    /*0x0016b1c4,*/0x20ff880a,
    /*0x0016b1c8,*/0x43134382,
    /*0x0016b1cc,*/0xe7bd800b,
    /*0x0016b1d0,*/0x00161e7c,
    /*0x0016b1d4,*/0x0016b798,
    /*0x0016b1d8,*/0x40620754,
    /*0x0016b1dc,*/0x0016b794,
    /*0x0016b1e0,*/0x00161928,
    /*0x0016b1e4,*/0x212220fd,
    /*0x0016b1e8,*/0x00169260,
    /*0x0016b1ec,*/0x4061018e,
    /*0x0016b1f0,*/0x4061650c,
    /*0x0016b1f4,*/0x0004b510,
    /*0x0016b1f8,*/0xff7cf71d,
    /*0x0016b1fc,*/0xd0002801,
    /*0x0016b200,*/0x4b0fbd10,
    /*0x0016b204,*/0x490f781b,
    /*0x0016b208,*/0x00922295,
    /*0x0016b20c,*/0x4a0e548b,
    /*0x0016b210,*/0x4a0e6811,
    /*0x0016b214,*/0x490e6011,
    /*0x0016b218,*/0x548b222d,
    /*0x0016b21c,*/0xd9082c01,
    /*0x0016b220,*/0xd1ed2c02,
    /*0x0016b224,*/0x880a490b,
    /*0x0016b228,*/0x438220ff,
    /*0x0016b22c,*/0x800b4313,
    /*0x0016b230,*/0x4909e7e6,
    /*0x0016b234,*/0x20ff880a,
    /*0x0016b238,*/0x43134382,
    /*0x0016b23c,*/0xe7df800b,
    /*0x0016b240,*/0x0016b798,
    /*0x0016b244,*/0x00161e7c,
    /*0x0016b248,*/0x0016b794,
    /*0x0016b24c,*/0x40620754,
    /*0x0016b250,*/0x00169260,
    /*0x0016b254,*/0x4061018e,
    /*0x0016b258,*/0x4061650c,
    /*0x0016b25c,*/0x4b18b570,
    /*0x0016b260,*/0x0082681b,
    /*0x0016b264,*/0x23ec58d2,
    /*0x0016b268,*/0x7a9d58d3,
    /*0x0016b26c,*/0x2a011e6a,
    /*0x0016b270,*/0x4b14d905,
    /*0x0016b274,*/0x24004798,
    /*0x0016b278,*/0xd0132d02,
    /*0x0016b27c,*/0x79dcbd70,
    /*0x0016b280,*/0x4b100924,
    /*0x0016b284,*/0x2d014798,
    /*0x0016b288,*/0x2c01d1f6,
    /*0x0016b28c,*/0x3c02d906,
    /*0x0016b290,*/0xd8f32c01,
    /*0x0016b294,*/0xf7ff2001,
    /*0x0016b298,*/0xe7efff53,
    /*0x0016b29c,*/0xf7ff2000,
    /*0x0016b2a0,*/0xe7ebff4f,
    /*0x0016b2a4,*/0xd9062c01,
    /*0x0016b2a8,*/0x2c013c02,
    /*0x0016b2ac,*/0x2001d8e6,
    /*0x0016b2b0,*/0xffa0f7ff,
    /*0x0016b2b4,*/0x2000e7e2,
    /*0x0016b2b8,*/0xff9cf7ff,
    /*0x0016b2bc,*/0x46c0e7de,
    /*0x0016b2c0,*/0x0016b790,
    /*0x0016b2c4,*/0x000afcad,
    /*0x0016b2c8,*/0x4b120412,
    /*0x0016b2cc,*/0x0449401a,
    /*0x0016b2d0,*/0x430a0c49,
    /*0x0016b2d4,*/0x601a4b10,
    /*0x0016b2d8,*/0x681a4b10,
    /*0x0016b2dc,*/0x21e00600,
    /*0x0016b2e0,*/0x400804c9,
    /*0x0016b2e4,*/0x400a490e,
    /*0x0016b2e8,*/0x60184310,
    /*0x0016b2ec,*/0x22806819,
    /*0x0016b2f0,*/0x430a0612,
    /*0x0016b2f4,*/0x6819601a,
    /*0x0016b2f8,*/0x05d22280,
    /*0x0016b2fc,*/0x601a430a,
    /*0x0016b300,*/0x4908681a,
    /*0x0016b304,*/0x601a400a,
    /*0x0016b308,*/0x0052681a,
    /*0x0016b30c,*/0x601a0852,
    /*0x0016b310,*/0x46c04770,
    /*0x0016b314,*/0x7fff0000,
    /*0x0016b318,*/0x40620544,
    /*0x0016b31c,*/0x40620528,
    /*0x0016b320,*/0xf8ffffff,
    /*0x0016b324,*/0xbfffffff,
    /*0x0016b328,*/0x46d6b5f0,
    /*0x0016b32c,*/0x4646464f,
    /*0x0016b330,*/0xb082b5c0,
    /*0x0016b334,*/0x680b491c,
    /*0x0016b338,*/0x4a1c4699,
    /*0x0016b33c,*/0x4b1c401a,
    /*0x0016b340,*/0x600b4313,
    /*0x0016b344,*/0x681b4b1b,
    /*0x0016b348,*/0x4b1b4698,
    /*0x0016b34c,*/0x469a681b,
    /*0x0016b350,*/0x23f02400,
    /*0x0016b354,*/0x439f4647,
    /*0x0016b358,*/0xb2e54e16,
    /*0x0016b35c,*/0x21002200,
    /*0x0016b360,*/0xf7ff0028,
    /*0x0016b364,*/0x0123ffb1,
    /*0x0016b368,*/0x6033433b,
    /*0x0016b36c,*/0xff1ff71d,
    /*0x0016b370,*/0xa8014669,
    /*0x0016b374,*/0xff2cf71d,
    /*0x0016b378,*/0x99019a00,
    /*0x0016b37c,*/0xf7ff0028,
    /*0x0016b380,*/0x3401ffa3,
    /*0x0016b384,*/0xd1e82c04,
    /*0x0016b388,*/0x464a4b07,
    /*0x0016b38c,*/0x4b09601a,
    /*0x0016b390,*/0x601a4642,
    /*0x0016b394,*/0x46524b08,
    /*0x0016b398,*/0xb002601a,
    /*0x0016b39c,*/0x4690bc1c,
    /*0x0016b3a0,*/0x46a24699,
    /*0x0016b3a4,*/0x46c0bdf0,
    /*0x0016b3a8,*/0x4062051c,
    /*0x0016b3ac,*/0x7f8fffff,
    /*0x0016b3b0,*/0x0020000a,
    /*0x0016b3b4,*/0x40620508,
    /*0x0016b3b8,*/0x40620004,
    /*0x0016b3bc,*/0x46c6b5f0,
    /*0x0016b3c0,*/0x4d11b500,
    /*0x0016b3c4,*/0x682a682c,
    /*0x0016b3c8,*/0x403a4f10,
    /*0x0016b3cc,*/0x005b2380,
    /*0x0016b3d0,*/0x602b4313,
    /*0x0016b3d4,*/0x68334e0e,
    /*0x0016b3d8,*/0x68334698,
    /*0x0016b3dc,*/0x43932202,
    /*0x0016b3e0,*/0x20266033,
    /*0x0016b3e4,*/0xfd18f71e,
    /*0x0016b3e8,*/0xff9ef7ff,
    /*0x0016b3ec,*/0xfd5af71e,
    /*0x0016b3f0,*/0x60334643,
    /*0x0016b3f4,*/0x05e4682b,
    /*0x0016b3f8,*/0x02240fe4,
    /*0x0016b3fc,*/0x431c403b,
    /*0x0016b400,*/0xbc04602c,
    /*0x0016b404,*/0xbdf04690,
    /*0x0016b408,*/0x40600400,
    /*0x0016b40c,*/0xfffffeff,
    /*0x0016b410,*/0x40580018,
    /*0x0016b414,*/0x4c09b570,
    /*0x0016b418,*/0x68236825,
    /*0x0016b41c,*/0x43132208,
    /*0x0016b420,*/0x68236023,
    /*0x0016b424,*/0x43133a04,
    /*0x0016b428,*/0x20266023,
    /*0x0016b42c,*/0xff2cf71d,
    /*0x0016b430,*/0xff7af7ff,
    /*0x0016b434,*/0xff84f71d,
    /*0x0016b438,*/0xbd706025,
    /*0x0016b43c,*/0x40580018,
    /*0x0016b440,*/0x46deb5f0,
    /*0x0016b444,*/0x464e4657,
    /*0x0016b448,*/0xb5e04645,
    /*0x0016b44c,*/0x4681b08b,
    /*0x0016b450,*/0x6803000d,
    /*0x0016b454,*/0x401a227f,
    /*0x0016b458,*/0x091c4692,
    /*0x0016b45c,*/0x4034260f,
    /*0x0016b460,*/0x9600401e,
    /*0x0016b464,*/0x4213220c,
    /*0x0016b468,*/0x4b3cd005,
    /*0x0016b46c,*/0x22006e9b,
    /*0x0016b470,*/0x20002100,
    /*0x0016b474,*/0x9b004798,
    /*0x0016b478,*/0xd905429c,
    /*0x0016b47c,*/0x6e9b4b37,
    /*0x0016b480,*/0x21002200,
    /*0x0016b484,*/0x47982000,
    /*0x0016b488,*/0x683e4f35,
    /*0x0016b48c,*/0x4b35683a,
    /*0x0016b490,*/0x401a469b,
    /*0x0016b494,*/0x005b2380,
    /*0x0016b498,*/0x603b4313,
    /*0x0016b49c,*/0x46984b32,
    /*0x0016b4a0,*/0x9301681b,
    /*0x0016b4a4,*/0x68134642,
    /*0x0016b4a8,*/0x43932202,
    /*0x0016b4ac,*/0x60134642,
    /*0x0016b4b0,*/0xf71e4650,
    /*0x0016b4b4,*/0x464afcb1,
    /*0x0016b4b8,*/0xa8036811,
    /*0x0016b4bc,*/0xfecef71e,
    /*0x0016b4c0,*/0xfcf0f71e,
    /*0x0016b4c4,*/0x9b014642,
    /*0x0016b4c8,*/0x683a6013,
    /*0x0016b4cc,*/0x0fdb05f3,
    /*0x0016b4d0,*/0x4659021b,
    /*0x0016b4d4,*/0x4313400a,
    /*0x0016b4d8,*/0x9b00603b,
    /*0x0016b4dc,*/0xd830429c,
    /*0x0016b4e0,*/0x34200027,
    /*0x0016b4e4,*/0x4b210124,
    /*0x0016b4e8,*/0xa80318e4,
    /*0x0016b4ec,*/0x46984b20,
    /*0x0016b4f0,*/0x051b23f0,
    /*0x0016b4f4,*/0x1d2b469c,
    /*0x0016b4f8,*/0xe0054699,
    /*0x0016b4fc,*/0x34103701,
    /*0x0016b500,*/0x9a00b2fb,
    /*0x0016b504,*/0xd31c429a,
    /*0x0016b508,*/0x7d1a183b,
    /*0x0016b50c,*/0x7bdb0212,
    /*0x0016b510,*/0x4643431a,
    /*0x0016b514,*/0x6022431a,
    /*0x0016b518,*/0x05195c3b,
    /*0x0016b51c,*/0x40314666,
    /*0x0016b520,*/0x0f5b071b,
    /*0x0016b524,*/0x430b075b,
    /*0x0016b528,*/0x02096861,
    /*0x0016b52c,*/0x430b0a09,
    /*0x0016b530,*/0x2d006063,
    /*0x0016b534,*/0x00fbd0e2,
    /*0x0016b538,*/0x464a50ea,
    /*0x0016b53c,*/0x50d16861,
    /*0x0016b540,*/0x22c0e7dc,
    /*0x0016b544,*/0x49090092,
    /*0x0016b548,*/0xf76d480a,
    /*0x0016b54c,*/0xb00bfc45,
    /*0x0016b550,*/0x4690bc3c,
    /*0x0016b554,*/0x46a24699,
    /*0x0016b558,*/0xbdf046ab,
    /*0x0016b55c,*/0x00161928,
    /*0x0016b560,*/0x40600400,
    /*0x0016b564,*/0xfffffeff,
    /*0x0016b568,*/0x40580018,
    /*0x0016b56c,*/0x001699d8,
    /*0x0016b570,*/0x80800000,
    /*0x0016b574,*/0x001e5180,
    /*0x0016b578,*/0x46deb5f0,
    /*0x0016b57c,*/0x464e4657,
    /*0x0016b580,*/0xb5e04645,
    /*0x0016b584,*/0x9001b083,
    /*0x0016b588,*/0x2400000d,
    /*0x0016b58c,*/0x4b264a25,
    /*0x0016b590,*/0x23e0469b,
    /*0x0016b594,*/0x469a04db,
    /*0x0016b598,*/0x059b23c0,
    /*0x0016b59c,*/0x4b234699,
    /*0x0016b5a0,*/0x4b234698,
    /*0x0016b5a4,*/0x4f239300,
    /*0x0016b5a8,*/0x68134e23,
    /*0x0016b5ac,*/0x40034658,
    /*0x0016b5b0,*/0x40204650,
    /*0x0016b5b4,*/0x60134303,
    /*0x0016b5b8,*/0x46486813,
    /*0x0016b5bc,*/0x60134303,
    /*0x0016b5c0,*/0x681b4643,
    /*0x0016b5c4,*/0x68009800,
    /*0x0016b5c8,*/0x403b041b,
    /*0x0016b5cc,*/0x0c400440,
    /*0x0016b5d0,*/0xc5084303,
    /*0x0016b5d4,*/0x40336813,
    /*0x0016b5d8,*/0x23806013,
    /*0x0016b5dc,*/0x469c045b,
    /*0x0016b5e0,*/0x23804464,
    /*0x0016b5e4,*/0x429c04db,
    /*0x0016b5e8,*/0x2004d1df,
    /*0x0016b5ec,*/0x2b019b01,
    /*0x0016b5f0,*/0xb003d006,
    /*0x0016b5f4,*/0x4690bc3c,
    /*0x0016b5f8,*/0x46a24699,
    /*0x0016b5fc,*/0xbdf046ab,
    /*0x0016b600,*/0x681b4b0e,
    /*0x0016b604,*/0x4b0e610b,
    /*0x0016b608,*/0x614b681b,
    /*0x0016b60c,*/0x681b4b0d,
    /*0x0016b610,*/0x4b0d618b,
    /*0x0016b614,*/0x61cb681b,
    /*0x0016b618,*/0x681b4b0c,
    /*0x0016b61c,*/0x3005620b,
    /*0x0016b620,*/0x46c0e7e7,
    /*0x0016b624,*/0x40620528,
    /*0x0016b628,*/0xf8ffffff,
    /*0x0016b62c,*/0x4062088c,
    /*0x0016b630,*/0x40620890,
    /*0x0016b634,*/0x7fff0000,
    /*0x0016b638,*/0xcfffffff,
    /*0x0016b63c,*/0x40620730,
    /*0x0016b640,*/0x40620734,
    /*0x0016b644,*/0x4062075c,
    /*0x0016b648,*/0x40620760,
    /*0x0016b64c,*/0x40622020,
    /*0x0016b650,*/0x0006b570,
    /*0x0016b654,*/0x2400000d,
    /*0x0016b658,*/0x58ea00a3,
    /*0x0016b65c,*/0xb2e00c11,
    /*0x0016b660,*/0xfe32f7ff,
    /*0x0016b664,*/0x2c043401,
    /*0x0016b668,*/0x2004d1f6,
    /*0x0016b66c,*/0xd0002e01,
    /*0x0016b670,*/0x4b08bd70,
    /*0x0016b674,*/0x601a692a,
    /*0x0016b678,*/0x696a4b07,
    /*0x0016b67c,*/0x4b07601a,
    /*0x0016b680,*/0x601a69aa,
    /*0x0016b684,*/0x69ea4b06,
    /*0x0016b688,*/0x6a2a601a,
    /*0x0016b68c,*/0x601a4b05,
    /*0x0016b690,*/0xe7ed3005,
    /*0x0016b694,*/0x40620730,
    /*0x0016b698,*/0x40620734,
    /*0x0016b69c,*/0x4062075c,
    /*0x0016b6a0,*/0x40620760,
    /*0x0016b6a4,*/0x40622020,
    /*0x0016b6a8,*/0xb08eb570,
    /*0x0016b6ac,*/0xf71d000c,
    /*0x0016b6b0,*/0x0005fd21,
    /*0x0016b6b4,*/0xd0052801,
    /*0x0016b6b8,*/0xb2db1e83,
    /*0x0016b6bc,*/0xd93e2b01,
    /*0x0016b6c0,*/0xbd70b00e,
    /*0x0016b6c4,*/0x021b7863,
    /*0x0016b6c8,*/0x041278a2,
    /*0x0016b6cc,*/0x78224313,
    /*0x0016b6d0,*/0x78e24313,
    /*0x0016b6d4,*/0x43130612,
    /*0x0016b6d8,*/0x4d2c9300,
    /*0x0016b6dc,*/0x23f0682e,
    /*0x0016b6e0,*/0x439a0032,
    /*0x0016b6e4,*/0x22700013,
    /*0x0016b6e8,*/0x602b4313,
    /*0x0016b6ec,*/0x4668a901,
    /*0x0016b6f0,*/0xf8d8f71e,
    /*0x0016b6f4,*/0x7963602e,
    /*0x0016b6f8,*/0x79a2021b,
    /*0x0016b6fc,*/0x43130412,
    /*0x0016b700,*/0x43137922,
    /*0x0016b704,*/0x061279e2,
    /*0x0016b708,*/0x93004313,
    /*0x0016b70c,*/0x46682100,
    /*0x0016b710,*/0xfa82f71e,
    /*0x0016b714,*/0xf71e2000,
    /*0x0016b718,*/0xa905f969,
    /*0x0016b71c,*/0xf71e2001,
    /*0x0016b720,*/0x2001fee9,
    /*0x0016b724,*/0xffdcf71e,
    /*0x0016b728,*/0xfe74f7ff,
    /*0x0016b72c,*/0xa9012234,
    /*0x0016b730,*/0xf76d9812,
    /*0x0016b734,*/0x2334fb51,
    /*0x0016b738,*/0x70139a13,
    /*0x0016b73c,*/0x7863e7c0,
    /*0x0016b740,*/0x78a2021b,
    /*0x0016b744,*/0x43130412,
    /*0x0016b748,*/0x43137822,
    /*0x0016b74c,*/0x061278e2,
    /*0x0016b750,*/0x93004313,
    /*0x0016b754,*/0x68264c0d,
    /*0x0016b758,*/0x003223f0,
    /*0x0016b75c,*/0x0013439a,
    /*0x0016b760,*/0x43132270,
    /*0x0016b764,*/0xa9016023,
    /*0x0016b768,*/0xf7ff4668,
    /*0x0016b76c,*/0x6026fe69,
    /*0x0016b770,*/0xf71e0028,
    /*0x0016b774,*/0xf7ffffb5,
    /*0x0016b778,*/0x2230fe21,
    /*0x0016b77c,*/0x9812a901,
    /*0x0016b780,*/0xfb2af76d,
    /*0x0016b784,*/0x9a132330,
    /*0x0016b788,*/0xe7997013,
    /*0x0016b78c,*/0x40620508,
    /*0x0016b790,*/0x00162738,
    /*0x0016b794,*/0x00000000,
    /*0x0016b798,*/0x00000000,
    /*0x0016b79c,*/0xfb06f0b5,
    /*0x0016b7a0,*/0xf8f3f0b4,
    /*0x0016b7a4,*/0xffa0f0b3,
};

const uint32_t VAR_WITH_VERx(fw_patch_slp_en_table, 3)[][2] =
{
    {(0x00161928 + 280 * 4), (0x0016ae68 + 1)},//rwip_sleep_preprocess
};

const uint32_t VAR_WITH_VERx(fw_patch_uart1_en_table, 3)[][2] =
{
    {(0x00161928 + 124 * 4), (0x0016ae14 + 1)},//uart_init
    {(0x00161928 + 278 * 4), (0x0016aee4 + 1)},//fw_init_done_set
};

const uint32_t VAR_WITH_VERx(fw_patch_rf_en_table, 3)[][2] =
{
    {(0x00161928 + 28 * 4), (0x0016ae40 + 1)},//rwip_setting_Init_patch
    {(0x00161928 + 23 * 4), (0x0016af1c + 1)},//rf_init
    {(0x00161928 + 140 * 4), (0x0016b578 + 1)},//btrd_pre_pwrdn
    {(0x00161928 + 141 * 4), (0x0016b650 + 1)},//btwr_pst_pwrup
    {(0x00161928 + 131 * 4), (0x0016b6a8 + 1)},//rf_calib
};

#if FIX_BOND_ERROR
const uint32_t VAR_WITH_VERx(fw_patch_extra_data_table, 3)[][2] =
{
#if FIX_BOND_ERROR
    {0x0016f6a0,(0x3dul << 24)},///Reset_Handler_C(use this patch if you want to fix bondid bug)
#endif
};
#endif

const uint32_t VAR_WITH_VERx(fw_patch_extra_en_table, 3)[][2] =
{
#if FIX_BOND_ERROR
    {0x0008be60,0x0016f6a0},///Reset_Handler_C(use this patch if you want to fix bondid bug)
#endif
    {0x000b5c4c,0xfb06f0b5},///ld_acl_test_mode_update in ld_acl_test_mode_set
    {0x000b7070,0xf0b40038},///ld_acl_test_mode_update in ld_acl_frm_cbk
    {0x000b7074,0x23a8f8f3},///ld_acl_test_mode_update in ld_acl_frm_cbk
    {0x000b7318,0xffa0f0b3},///ld_acl_test_mode_update in ld_tws_acl_frm_cbk
};

const uint32_t VAR_WITH_VERx(minisys_patch_data_table, 3)[] =
{
    /*0x001e7800,*/0x001e7800,
    /*0x00000204,*/0x00000204,
    /*0x001e7800,*/0x4b0e2204,
    /*0x001e7804,*/0x4b0e601a,
    /*0x001e7808,*/0x601a4a0e,
    /*0x001e780c,*/0x4a0f4b0e,
    /*0x001e7810,*/0x4b0f601a,
    /*0x001e7814,*/0x601a4a0f,
    /*0x001e7818,*/0x4a104b0f,
    /*0x001e781c,*/0x4b10601a,
    /*0x001e7820,*/0x601a4a10,
    /*0x001e7824,*/0x4a114b10,
    /*0x001e7828,*/0x4b11601a,
    /*0x001e782c,*/0x601a4a11,
    /*0x001e7830,*/0x4b112288,
    /*0x001e7834,*/0x601a0212,
    /*0x001e7838,*/0x46c04770,
    /*0x001e783c,*/0x40500028,
    /*0x001e7840,*/0x406200f0,
    /*0x001e7844,*/0x00002412,
    /*0x001e7848,*/0x40620100,
    /*0x001e784c,*/0x0b0a0908,
    /*0x001e7850,*/0x40620104,
    /*0x001e7854,*/0x1b1a1918,
    /*0x001e7858,*/0x40620108,
    /*0x001e785c,*/0x17160000,
    /*0x001e7860,*/0x4062010c,
    /*0x001e7864,*/0x000c0302,
    /*0x001e7868,*/0x40600450,
    /*0x001e786c,*/0x81008583,
    /*0x001e7870,*/0x406200fc,
    /*0x001e7874,*/0x06001100,
    /*0x001e7878,*/0x40600050,
    /*0x001e787c,*/0x4904220f,
#if MINISYS_UART_GPIO3
    /*0x001e7880,*/0x439368cb,
    /*0x001e7884,*/0x2305001a,
    /*0x001e7888,*/0x60cb4313,
#else
    /*0x001e7880,*/0x4393694b,
    /*0x001e7884,*/0x2305001a,
    /*0x001e7888,*/0x614b4313,
#endif
    /*0x001e788c,*/0x46c04770,
    /*0x001e7890,*/0x40503000,
    /*0x001e7894,*/0x4c0db510,
    /*0x001e7898,*/0x43db6de3,
    /*0x001e789c,*/0xd109079b,
    /*0x001e78a0,*/0xf9fef019,
    /*0x001e78a4,*/0xb2db1e43,
    /*0x001e78a8,*/0xd8042b01,
    /*0x001e78ac,*/0x4b086d62,
    /*0x001e78b0,*/0x65634313,
    /*0x001e78b4,*/0x2803bd10,
    /*0x001e78b8,*/0x2302d1fc,
    /*0x001e78bc,*/0x43136d62,
    /*0x001e78c0,*/0x6d636563,
    /*0x001e78c4,*/0x40134a03,
    /*0x001e78c8,*/0x46c0e7f3,
    /*0x001e78cc,*/0x40506000,
    /*0x001e78d0,*/0x00000802,
    /*0x001e78d4,*/0xfffff7ff,
    /*0x001e78d8,*/0xb5304b0d,
    /*0x001e78dc,*/0x2001681d,
    /*0x001e78e0,*/0xd0142d00,
    /*0x001e78e4,*/0x00e94b0b,
    /*0x001e78e8,*/0x4b0b691c,
    /*0x001e78ec,*/0x681a1949,
    /*0x001e78f0,*/0x436b233d,
    /*0x001e78f4,*/0x185b0a09,
    /*0x001e78f8,*/0x1aa140c3,
    /*0x001e78fc,*/0x42992000,
    /*0x001e7900,*/0x4806d205,
    /*0x001e7904,*/0x18d31b12,
    /*0x001e7908,*/0x41804298,
    /*0x001e790c,*/0xbd304240,
    /*0x001e7910,*/0x001e043c,
    /*0x001e7914,*/0x40501000,
    /*0x001e7918,*/0x001e0440,
    /*0x001e791c,*/0x0000176f,
    /*0x001e7920,*/0xd1022800,
    /*0x001e7924,*/0x4b012208,
    /*0x001e7928,*/0x4770601a,
    /*0x001e792c,*/0x40044300,
    /*0x001e7930,*/0x00004770,
    /*0x001e7934,*/0xb5704a16,
    /*0x001e7938,*/0x6c506c91,
    /*0x001e793c,*/0x0c9b008b,
    /*0x001e7940,*/0x64534303,
    /*0x001e7944,*/0xd521010b,
    /*0x001e7948,*/0x208024c0,
    /*0x001e794c,*/0x4b1125c5,
    /*0x001e7950,*/0x03c00064,
    /*0x001e7954,*/0x00ad5118,
    /*0x001e7958,*/0x490f595a,
    /*0x001e795c,*/0x22fc4011,
    /*0x001e7960,*/0x430a0412,
    /*0x001e7964,*/0x6018515a,
    /*0x001e7968,*/0x51182002,
    /*0x001e796c,*/0x591a1924,
    /*0x001e7970,*/0x4011490a,
    /*0x001e7974,*/0x021222fc,
    /*0x001e7978,*/0x511a430a,
    /*0x001e797c,*/0x60184c08,
    /*0x001e7980,*/0x47986a23,
    /*0x001e7984,*/0xd0012800,
    /*0x001e7988,*/0x47986923,
    /*0x001e798c,*/0x46c0bd70,
    /*0x001e7990,*/0x40506000,
    /*0x001e7994,*/0xe000e100,
    /*0x001e7998,*/0xff00ffff,
    /*0x001e799c,*/0xffff00ff,
    /*0x001e79a0,*/0x001e0090,
    /*0x001e79a4,*/0xb5104814,
    /*0x001e79a8,*/0x041a68c3,
    /*0x001e79ac,*/0x2280d502,
    /*0x001e79b0,*/0x60820412,
    /*0x001e79b4,*/0xd51e05db,
    /*0x001e79b8,*/0x4a102108,
    /*0x001e79bc,*/0x6d546d53,
    /*0x001e79c0,*/0x0d9b059b,
    /*0x001e79c4,*/0x430b0aa4,
    /*0x001e79c8,*/0x432302a4,
    /*0x001e79cc,*/0x68146553,
    /*0x001e79d0,*/0x05a46813,
    /*0x001e79d4,*/0x0a9b0da4,
    /*0x001e79d8,*/0x029b4321,
    /*0x001e79dc,*/0x23804319,
    /*0x001e79e0,*/0x22806011,
    /*0x001e79e4,*/0x6083025b,
    /*0x001e79e8,*/0x03d24b05,
    /*0x001e79ec,*/0xf3bf67da,
    /*0x001e79f0,*/0xf3bf8f4f,
    /*0x001e79f4,*/0xbd108f6f,
    /*0x001e79f8,*/0x40501000,
    /*0x001e79fc,*/0x40506000,
    /*0x001e7a00,*/0xe000e104,

};

const uint32_t VAR_WITH_VERx(minisys_patch_en_table, 3)[][2] =
{
    //{(0x001e0090 + 17 * 4),(0x001e7800 + 1)},///monitor_init(replace aon_btdm_func_tbl[17])
#if MINISYS_UART_ENABLE
    {(0x001e0090 + 16 * 4),(0x001e787c + 1)},///btdm_uart_iomux_config(replace aon_btdm_func_tbl[16], used in HIBERNATE)
#endif
    {(0x001e0090 + 13 * 4),(0x001e7894 + 1)},///sysctrl_init(replace aon_btdm_func_tbl[13])
    {(0x001e0090 + 24 * 4),(0x001e78d8 + 1)},///aon_allow_low_power(replace aon_btdm_func_tbl[24])
    {(0x001e0090 + 25 * 4),(0x001e7920 + 1)},///aon_status_indication(replace aon_btdm_func_tbl[25])
    {(0x001e0018 + 1 * 4),(0x001e7930 + 1)},///wifi_lp_timeout_handler(replace aon_wifi_func_tbl[1])
};

const uint32_t VAR_WITH_VERx(minisys_patch_extra_en_table, 3)[][2] =
{
    {0x002000b8, 0x001e7935},///pwrctrl_irq_patch
    {0x00200098, 0x001e79a5},///TIMER20_IRQHandler_patch
};

bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_a1, 3)[] = {
    {1, (uint32_t *)&VAR_WITH_VERx(fw_patch_data_table, 3), sizeof(VAR_WITH_VERx(fw_patch_data_table, 3)) / sizeof(VAR_WITH_VERx(fw_patch_data_table, 3)[0])},
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_slp_en_table, 3), sizeof(VAR_WITH_VERx(fw_patch_slp_en_table, 3)) / sizeof(VAR_WITH_VERx(fw_patch_slp_en_table, 3)[0])},
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_uart1_en_table, 3), sizeof(VAR_WITH_VERx(fw_patch_uart1_en_table, 3)) / sizeof(VAR_WITH_VERx(fw_patch_uart1_en_table, 3)[0])},
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_rf_en_table, 3), sizeof(VAR_WITH_VERx(fw_patch_rf_en_table, 3)) / sizeof(VAR_WITH_VERx(fw_patch_rf_en_table, 3)[0])},
#if FIX_BOND_ERROR
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_extra_data_table, 3), sizeof(VAR_WITH_VERx(fw_patch_extra_data_table, 3)) / sizeof(VAR_WITH_VERx(fw_patch_extra_data_table, 3)[0])}
#endif
};
//bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_a2, 3)[] = {
//};

bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_b1, 3)[] = {
    {2, (uint32_t *)&VAR_WITH_VERx(fw_patch_extra_en_table, 3), sizeof(VAR_WITH_VERx(fw_patch_extra_en_table, 3)) / sizeof(VAR_WITH_VERx(fw_patch_extra_en_table, 3)[0])}
};
//bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_b2, 3)[] = {
//};

bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_c1, 3)[] = {
    {1, (uint32_t *)&VAR_WITH_VERx(minisys_patch_data_table, 3), sizeof(VAR_WITH_VERx(minisys_patch_data_table, 3)) / sizeof(VAR_WITH_VERx(minisys_patch_data_table, 3)[0])},
    {2, (uint32_t *)&VAR_WITH_VERx(minisys_patch_en_table, 3), sizeof(VAR_WITH_VERx(minisys_patch_en_table, 3)) / sizeof(VAR_WITH_VERx(minisys_patch_en_table, 3)[0])}
};
//bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_c2, 3)[] = {
//};

bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_d1, 3)[] = {
    {2, (uint32_t *)&VAR_WITH_VERx(minisys_patch_extra_en_table, 3), sizeof(VAR_WITH_VERx(minisys_patch_extra_en_table, 3)) / sizeof(VAR_WITH_VERx(minisys_patch_extra_en_table, 3)[0])}
};
//bt_patch_tbl_t VAR_WITH_VERx(bt_patch_tbl_d2, 3)[] = {
//};

uint32_t fw_patch_extra_addr;
uint32_t minisys_patch_extra_addr;
bt_patch_tbl_t *bt_patch_tbl_a1;
bt_patch_tbl_t *bt_patch_tbl_a2;
bt_patch_tbl_t *bt_patch_tbl_b1;
bt_patch_tbl_t *bt_patch_tbl_b2;
bt_patch_tbl_t *bt_patch_tbl_c1;
bt_patch_tbl_t *bt_patch_tbl_c2;
bt_patch_tbl_t *bt_patch_tbl_d1;
bt_patch_tbl_t *bt_patch_tbl_d2;
uint32_t bt_patch_tbl_a1_size;
uint32_t bt_patch_tbl_a2_size;
uint32_t bt_patch_tbl_b1_size;
uint32_t bt_patch_tbl_b2_size;
uint32_t bt_patch_tbl_c1_size;
uint32_t bt_patch_tbl_c2_size;
uint32_t bt_patch_tbl_d1_size;
uint32_t bt_patch_tbl_d2_size;

void bt_patch_prepare(void)
{
    #if (CFG_ROM_VER == 255)
    uint8_t chip_id = ChipIdGet(0);
    if (chip_id == 0x03) {
        fw_patch_extra_addr      = FW_PATCH_EXTRA_ADDRx(2);
        minisys_patch_extra_addr = MINISYS_PATCH_EXTRA_ADDRx(2);
        bt_patch_tbl_a1 = VAR_WITH_VERx(bt_patch_tbl_a1, 2);
        bt_patch_tbl_a2 = VAR_WITH_VERx(bt_patch_tbl_a2, 2);
        bt_patch_tbl_b1 = VAR_WITH_VERx(bt_patch_tbl_b1, 2);
        bt_patch_tbl_b2 = NULL;//VAR_WITH_VERx(bt_patch_tbl_b2, 2);
        bt_patch_tbl_c1 = VAR_WITH_VERx(bt_patch_tbl_c1, 2);
        bt_patch_tbl_c2 = VAR_WITH_VERx(bt_patch_tbl_c2, 2);
        bt_patch_tbl_d1 = VAR_WITH_VERx(bt_patch_tbl_d1, 2);
        bt_patch_tbl_d2 = NULL;//VAR_WITH_VERx(bt_patch_tbl_d2, 2);
        bt_patch_tbl_a1_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_a1, 2)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_a1, 2)[0]);
        bt_patch_tbl_a2_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_a2, 2)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_a2, 2)[0]);
        bt_patch_tbl_b1_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_b1, 2)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_b1, 2)[0]);
        bt_patch_tbl_b2_size = 0;//sizeof(VAR_WITH_VERx(bt_patch_tbl_b2, 2)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_b2, 2)[0]);
        bt_patch_tbl_c1_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_c1, 2)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_c1, 2)[0]);
        bt_patch_tbl_c2_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_c2, 2)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_c2, 2)[0]);
        bt_patch_tbl_d1_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_d1, 2)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_d1, 2)[0]);
        bt_patch_tbl_d2_size = 0;//sizeof(VAR_WITH_VERx(bt_patch_tbl_d2, 2)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_d2, 2)[0]);
    } else if (chip_id == 0x07) {
        fw_patch_extra_addr      = FW_PATCH_EXTRA_ADDRx(3);
        minisys_patch_extra_addr = MINISYS_PATCH_EXTRA_ADDRx(3);
        bt_patch_tbl_a1 = VAR_WITH_VERx(bt_patch_tbl_a1, 3);
        bt_patch_tbl_a2 = NULL;//VAR_WITH_VERx(bt_patch_tbl_a2, 3);
        bt_patch_tbl_b1 = VAR_WITH_VERx(bt_patch_tbl_b1, 3);
        bt_patch_tbl_b2 = NULL;//VAR_WITH_VERx(bt_patch_tbl_b2, 3);
        bt_patch_tbl_c1 = VAR_WITH_VERx(bt_patch_tbl_c1, 3);
        bt_patch_tbl_c2 = NULL;//VAR_WITH_VERx(bt_patch_tbl_c2, 3);
        bt_patch_tbl_d1 = VAR_WITH_VERx(bt_patch_tbl_d1, 3);
        bt_patch_tbl_d2 = NULL;//VAR_WITH_VERx(bt_patch_tbl_d2, 3);
        bt_patch_tbl_a1_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_a1, 3)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_a1, 3)[0]);
        bt_patch_tbl_a2_size = 0;//sizeof(VAR_WITH_VERx(bt_patch_tbl_a2, 3)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_a2, 3)[0]);
        bt_patch_tbl_b1_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_b1, 3)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_b1, 3)[0]);
        bt_patch_tbl_b2_size = 0;//sizeof(VAR_WITH_VERx(bt_patch_tbl_b2, 3)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_b2, 3)[0]);
        bt_patch_tbl_c1_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_c1, 3)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_c1, 3)[0]);
        bt_patch_tbl_c2_size = 0;//sizeof(VAR_WITH_VERx(bt_patch_tbl_c2, 3)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_c2, 3)[0]);
        bt_patch_tbl_d1_size = sizeof(VAR_WITH_VERx(bt_patch_tbl_d1, 3)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_d1, 3)[0]);
        bt_patch_tbl_d2_size = 0;//sizeof(VAR_WITH_VERx(bt_patch_tbl_d2, 3)) / sizeof(VAR_WITH_VERx(bt_patch_tbl_d2, 3)[0]);
    }
    #else
    fw_patch_extra_addr      = FW_PATCH_EXTRA_ADDR;
    minisys_patch_extra_addr = MINISYS_PATCH_EXTRA_ADDR;
    bt_patch_tbl_a1 = VAR_WITH_VER(bt_patch_tbl_a1);
    bt_patch_tbl_a2 = VAR_WITH_VER(bt_patch_tbl_a2);
    bt_patch_tbl_b1 = VAR_WITH_VER(bt_patch_tbl_b1);
    bt_patch_tbl_b2 = VAR_WITH_VER(bt_patch_tbl_b2);
    bt_patch_tbl_c1 = VAR_WITH_VER(bt_patch_tbl_c1);
    bt_patch_tbl_c2 = VAR_WITH_VER(bt_patch_tbl_c2);
    bt_patch_tbl_d1 = VAR_WITH_VER(bt_patch_tbl_d1);
    bt_patch_tbl_d2 = VAR_WITH_VER(bt_patch_tbl_d2);
    bt_patch_tbl_a1_size = sizeof(VAR_WITH_VER(bt_patch_tbl_a1)) / sizeof(VAR_WITH_VER(bt_patch_tbl_a1)[0]);
    bt_patch_tbl_a2_size = sizeof(VAR_WITH_VER(bt_patch_tbl_a2)) / sizeof(VAR_WITH_VER(bt_patch_tbl_a2)[0]);
    bt_patch_tbl_b1_size = sizeof(VAR_WITH_VER(bt_patch_tbl_b1)) / sizeof(VAR_WITH_VER(bt_patch_tbl_b1)[0]);
    bt_patch_tbl_b2_size = sizeof(VAR_WITH_VER(bt_patch_tbl_b2)) / sizeof(VAR_WITH_VER(bt_patch_tbl_b2)[0]);
    bt_patch_tbl_c1_size = sizeof(VAR_WITH_VER(bt_patch_tbl_c1)) / sizeof(VAR_WITH_VER(bt_patch_tbl_c1)[0]);
    bt_patch_tbl_c2_size = sizeof(VAR_WITH_VER(bt_patch_tbl_c2)) / sizeof(VAR_WITH_VER(bt_patch_tbl_c2)[0]);
    bt_patch_tbl_d1_size = sizeof(VAR_WITH_VER(bt_patch_tbl_d1)) / sizeof(VAR_WITH_VER(bt_patch_tbl_d1)[0]);
    bt_patch_tbl_d2_size = sizeof(VAR_WITH_VER(bt_patch_tbl_d2)) / sizeof(VAR_WITH_VER(bt_patch_tbl_d2)[0]);
    #endif
}
